Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error running Android (written in Kotlin) project compiled with Gradle2.0.0-alpha plugin

When compiling the project with the new gradle2.0.0-alpha pluggin I'm getting.

java.lang.RuntimeException: 
  Unable to instantiate application com.android.tools.fd.runtime.BootstrapApplication: 
  java.lang.ClassNotFoundException: 
    Didn't find class "com.android.tools.fd.runtime.BootstrapApplication" on path:
    DexPathList[[zip file "/data/app/com.inoutdelivery.enfesta-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]

Any ideas?

like image 783
Samuel Barbosa Avatar asked Nov 23 '15 21:11

Samuel Barbosa


1 Answers

On a non-Kotlin Android project, I was running into this same problem. I solved it by turning Instant Run off (Preferences -> Build, Execution, Deployment -> Instant Run -> Enable Instant Run), running my app, and then turning Instant Run back on.

Instant Run isn't working for me as advertised, but this at least got the app to build on 2.0.0-alpha.

like image 173
clay_to_n Avatar answered Oct 27 '22 04:10

clay_to_n