Android Studio 使用问题之 Instant Run

2016/05/22 posted in  Android

Android Studio 的 Instant Run是2.0以后的版本新给出的特性,旨在快速运行新修改的程序。可是最近在开发过程中,发现Android 4.4.4的机器运行报以下错误:

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.elitech.rb.debug-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.elitech.rb.debug-1, /system/lib]]

这里只要把Instant Run禁用掉就可以了:Settings--> Build,Execution,Deployment -->Instant Run

可以参考Android Studio的Instant Run文档进一步了解Instant Run:

Android Studio Instant Run documentation