Error while creating android+cotlin project in IDEA

Answered

I have created blank fragment activity.

Aftrer that, I've converted Activty and Fragment to Kotlin.

If I try to open Anko DSL preview then in logs I see an exception 

{code}

2016-05-11 14:35:03,296 [ 382590] ERROR - plication.impl.ApplicationImpl - org/jetbrains/kotlin/caches/resolve/KotlinCacheService
java.lang.NoClassDefFoundError: org/jetbrains/kotlin/caches/resolve/KotlinCacheService
at org.jetbrains.kotlin.android.dslpreview.DslPreviewToolWindowManager$UpdateActivityNameTask.processRequest(DslPreviewToolWindowManager.kt:525
)
at org.jetbrains.kotlin.android.dslpreview.DslPreviewToolWindowManager$UpdateActivityNameTask.processRequest(DslPreviewToolWindowManager.kt:497
)
at org.jetbrains.kotlin.idea.util.LongRunningReadTask$1$1.run(LongRunningReadTask.java:110)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:943)
at org.jetbrains.kotlin.idea.util.LongRunningReadTask$3.run(LongRunningReadTask.java:226)
at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:142)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:446)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:127)
at org.jetbrains.kotlin.idea.util.LongRunningReadTask.runWithWriteActionPriority(LongRunningReadTask.java:223)
at org.jetbrains.kotlin.idea.util.LongRunningReadTask$1.run(LongRunningReadTask.java:105)
at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:365)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:55)
2016-05-11 14:35:03,297 [ 382591] ERROR - plication.impl.ApplicationImpl - IntelliJ IDEA 15.0.2 Build #IU-143.1184.17
2016-05-11 14:35:03,297 [ 382591] ERROR - plication.impl.ApplicationImpl - JDK: 1.8.0_65
2016-05-11 14:35:03,297 [ 382591] ERROR - plication.impl.ApplicationImpl - VM: Java HotSpot(TM) 64-Bit Server VM
2016-05-11 14:35:03,297 [ 382591] ERROR - plication.impl.ApplicationImpl - Vendor: Oracle Corporation
2016-05-11 14:35:03,297 [ 382591] ERROR - plication.impl.ApplicationImpl - OS: Windows 7

{code}

4 comments

Please try a more recent IDEA version and install the updated Kotlin plug-in. IDEA 15.0.5 is available at http://confluence.jetbrains.com/display/IntelliJIDEA/Previous+IntelliJ+IDEA+Releases and Kotlin 1.0.1-release-IJ143-40 can be updated from the plugin repository.

If it still doesn't work, try the latest release.

0

I's not good I have pro license that was expired. :(

0

If your license works with 15.0.2, it will work with 15.0.5 too. The main point is to update Kotlin plug-in since it has fixed several known issues.

0

Thanks a lot. My license is realy compatible with 15.0.6 that released today :)

0

Please sign in to leave a comment.