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

前端 未结 1 835
误落风尘
误落风尘 2021-01-12 00:30

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

java.lang.RuntimeException: 
  Unable to instantiate application         


        
相关标签:
1条回答
  • 2021-01-12 01:10

    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.

    0 讨论(0)
提交回复
热议问题