可以正常运行的app,在部分手机(如vivo-x5v)上无法启动,提示“Unable to instantiate application com.android.tools.fd.runtime.BootstrapApplication”问题:
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.hnchieftain.art.person-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.xx-1, /vendor/lib, /system/lib]]
解决方案:
打开Android studio的setting功能,去掉“Enable Instant Run ...”勾选: