Anko: Anko DSL Preview for Android Studio 2.2

Created on 31 May 2016  ·  42Comments  ·  Source: Kotlin/anko

The Layout Preview panel was completely changed in Android Studio 2.2, so the current DSL Preview plugin implementation became incompatible.

The sad fact is that all contributed hooks are gone. Moreover, the source code of Android Studio 2.2 is not available until release.

IDE bug

Most helpful comment

I Cannot load project:
com.intellij.ide .plugins.PluginManager$StartupAbortedException:
com.intellij.diagnostic.PluginException:
org/jetbrains/android/uipreview/AndroidLayoutPreviewToolWindowManager
[Plugin: org.jetbrain.kotlin.android.dsl]

All 42 comments

11:18:12 Plugin Error: Kotlin threw an uncaught IndexNotReadyException. Disable Plugin 11:18:12 IndexNotReadyException: Please change caller according to com.intellij.openapi.project.IndexNotReadyException documentation

I Cannot load project:
com.intellij.ide .plugins.PluginManager$StartupAbortedException:
com.intellij.diagnostic.PluginException:
org/jetbrains/android/uipreview/AndroidLayoutPreviewToolWindowManager
[Plugin: org.jetbrain.kotlin.android.dsl]

I'm getting the same error as @revarnami

Sup Guys
Any one with a fix cause I have a same problem with my view. Android studio threw me this:

Cannot load project: com.intellij.ide.plugins.PluginManager$StartupAbortedException: com.intellij.diagnostic.PluginException: org/jetbrains/android/uipreview/AndroidLayoutPreviewToolWindowManager [Plugin: org.jetbrains.kotlin.android.dsl]

Same with me, I can't even open the IDE as long as the plugin is enabled...

I just upgraded my AndroidStudio on stable channel and got this error. any solution/workaround?

@Hesamedin Unfortunately, DSL Preview plugin is not available for AS 2.2 yet, sorry. We will try to fix this as early as possible, but for now the only possible way is to use AS 2.1 or IntelliJ IDEA.

解决办法:将anko插件卸载掉就可以了;

I just deleted Anko DSL plugin and AS 2.2 could start without problem.

I just deleted Anko DSL plugin and AS 2.2 could start without problem.

Hesamedin : this is ok , thanks verymacth

I hope the Anko team can fix this problem ASAP as this is one of the main feature of anko, without the preview its quite hard to use Anko to build layouts

Still there, AndroidStudio 2.2.1. Anko version 0.9

@yanex Hi, any updates on this issue? I'm having a bit of a trouble designing layouts without a preview. Any workaround other than downgrading to AS 2.1?

Hi,
I'm going to do a talk about Kotlin for Android Development, in which I'll cover anko in 2017, February. Using anko without layout preview is almost a show stopper. Is there any chance this can be working again by the end of 2016, or 2017 January?

We will try to fix this as early as possible, but for now the only possible way is to use AS 2.1 or IntelliJ IDEA.

Hey I'm using intellij ultimate 2016.3 and can't seem to get this to work. Any tips?

@yousuf-haque nope as well with Android Studio 2.2.1

@LouisCAD: Funny, I'm doing the exact same thing, February 2nd, 2017. Was also hoping to have this fixed by then. It's a bit annoying to have to first create an XML layout for the preview and then convert to Anko DSL.

@sindrenm I personally gave up using Anko for now, because writing xml is more convenient with the preview, and the fact that I'm more used to it. Still looking forward anko preview support comeback though.

Sad to see that this has been broken for so long and that support is only for legacy versions. I got my hopes up from reading the documentation. 😬

I also got this error until disabled anko plugin, any other way to solve this problem?

@pinkApple: Not right now. The plugin doesn't support newer versions of Android Studio.

when i updated android studio 👍
it returns this errors and can not open android project
Cannot load project: com.intellij.ide.plugins.PluginManager$StartupAbortedException: com.intellij.diagnostic.PluginException: com/android/builder/model/BaseArtifact [Plugin: org.jetbrains.android]

@stackprogramer: You will need to disable the Anko DSL Preview plugin, as mentioned above.

Configure → Settings → Plugins → Anko DSL Preview (untick the checkbox to the right)

Is there an update on the progress of this?

i did this,error not fix finally i uninstalled and i downloaded most updated stable android studio thanks

Any update on this bug?

I am now trying to update!
because i am also having this kind of error!

@twero You should downdate :-(

+1, this issue blocks our team to use Anko... :(

i already okay with this
i noticed error was gone

On Tue, Jan 24, 2017 at 5:27 AM, Xavier Fernández Salas <
[email protected]> wrote:

+1, this issue blocks our team to use Anko... :(


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Kotlin/anko/issues/202#issuecomment-274622286, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ANpW09WdCZDkrfFil800e71KSuYhEDysks5rVRs1gaJpZM4Iq490
.

@twero Which error which was gone, where? Could you elaborate please?

+1
AS 2.2.3
Anko Preview Plugin 0.9b

See also #314.

The problem still here

Android Studio 2.3 Beta 4
Build #AI-162.3715353, built on February 8, 2017
JRE: 1.8.0_112-release-b06 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

Anko DSL Preview 0.9b

Just encountered this myself.

@tmseiler There is a new issue for all these related issues, check #314

Any update?

Still there with AS 2.3.3, Anko DSL Preview 0.9b

UPD: Looking forward to getting 0.10 released

@trubitsyn It's already been out a while.

Unfortunately 0.10.1 is not available through AS plugin installer yet.

It says in the wiki:

The Anko Support plugin is currently supported only in Android Studio 2.4+.

The stable version is at 2.3.0 right now. So it probably only works with the canary version. Which is 3.0 canary 5.

plugin can not use in IntelliJ IDEA too @yanex 171.46....

Was this page helpful?
0 / 5 - 0 ratings

Related issues

HarryTylenol picture HarryTylenol  ·  3Comments

HarryTylenol picture HarryTylenol  ·  4Comments

jeantuffier picture jeantuffier  ·  5Comments

telenc picture telenc  ·  3Comments

Anilugale picture Anilugale  ·  4Comments