Kotlin plugin bug in Android Studio - can't call functions from stdlib


#1

I have very unpleasant situation in Android Studio. Today, suddenly in all existed projects I’ve begun to catch error like this

Failed to build java cls class for C:/Users/Alexey/.gradle/caches/modules- 
2/files-2.1/org.jetbrains.kotlin/kotlin- 
stdlib/1.2.71/d9717625bb3c731561251f8dd2c67a1011d6764c/kotlin-stdlib- 
1.2.71.jar!/kotlin/Experimental.class: C:/Users/Alexey/.gradle/caches/modules- 
2/files-2.1/org.jetbrains.kotlin/kotlin- 
stdlib/1.2.71/d9717625bb3c731561251f8dd2c67a1011d6764c/kotlin-stdlib- 
1.2.71.jar!/kotlin/Experimental.class: null

This exception is occurred, when I try to call method from autocomplete (CTRL + Space) and I can’t call any functions from Kotlin standard library like apply, let, isNullOrEmpty etc.

Please help me, I don’t know what to do. The steps I’ve already made: 1) Reinstall Android studio 2) Tested newly created virgin android projects (the same story with same exception) 3) Clean/rebuild projects 4) Invalidate cache

The example of one of my gradle buildhttps://gist.github.com/LAHomieJob/0067e8f7f46e55bb1a43ab9c9185a9f9


#2

Please try to reinstall the Kotlin IDE plugin from disk: https://plugins.jetbrains.com/plugin/6954-kotlin. It might also help to restore the default IDE settings (be sure to create a backup of old settings with “File->Export settings”. Does it help to change the Kotlin version in build.gradle?

Note: looks similar to https://youtrack.jetbrains.com/issue/KT-24755.


#3

I’ve solved this issue. Look, tthe reinstall of plugin and Android studio didn’t help me. I deleted all setting from Android studio package and it solved my problem