天天看点

Android Studio:Unable to instantiate application com.android.tools.fd.runtime.BootstrapApplication

1. 最近用android studio开发项目的时候遇到了这个问题,google了很久,加上自己的修改解决了这个问题:

2. 报错log: 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:

   原因: SDK版本太低不支持Instant Run导致的

   解决办法:

   a. 打开File->Settings 或者 Preferences 导航框。

   b.找到 Build, Execution, Deployment > Instant Run, 把Enable Instant Run......前面的勾去掉, 这就 禁掉了Instant Run, 重新rebuild project

   PS: Instant Run仅支持Gradle 版本 2.0.0 或更高版本,以及在app下的 build.gradle 文件中配置minSdkVersion 

   15 或以上Instant Run 才支持, minSdkVersion 为21 或更高性能更好

禁掉Instant Run可能会导致别的问题

转自:https://blog.csdn.net/likesidehu/article/details/52606373

继续阅读