android studio使用问题——instant run

Instant run

android studio的instant run是2.0以后的版本新给出的特性,旨在快速运行新修改的程序,具体的介绍可百度搜索一下,不再赘述。

然而,最近在开发过程中,遇到个问题,4.4.4的android系统,运行时出现了一个问题,

android studio使用问题——instant run

看到这个,瞬间不淡定了,这个不是我项目中的内容啊,查了下,发现这个是由于Instant run特性不支持android4.4.4版本及以下,所以运行时才会出错。

·

Caused by: 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]] ·

解决方法:*解决方法

转载于:https://my.oschina.net/Gxhpro/blog/674078