Android studio instant run导致的classNotFoundException

Caused by: java.lang.ClassNotFoundException: Didn’t find class “com.xcds.doormutual.MyApplication” on path: DexPathList[[zip file “/data/app/com.xcds.doormutual-1/base.apk”],nativeLibraryDirectories=[/data/app/com.xcds.doormutual-1/lib/arm, /data/app/com.xcds.doormutual-1/base.apk!/lib/armeabi, /vendor/lib, /system/lib]]

由instantRun导致的类找不到异常,复制下Stack Overflow的解决方案:

I tried all possible options but result is zero. Finally i found correct solution which is helpful for me. Just go to disable Instant Run Go to File -> Settings -> Build,Execution, Deployment -> Instant Run -> Uncheck the checkbox for instant run. Run your app once and this apk file work properly.

猜你喜欢

转载自blog.csdn.net/divaid/article/details/80656065