Didn't|Didn't find class "MyApplication" on path: DexPathList[apk"],nativeLibraryDirectories=[lib]]

【Didn't|Didn't find class "MyApplication" on path: DexPathList[apk"],nativeLibraryDirectories=[lib]]】Caused by: java.lang.ClassNotFoundException: Didn't find class "com.dianjin.caicai.app.MyApplication" on path: DexPathList[[zip file "/data/app/com.dianjin.caicai-1/base.apk"],nativeLibraryDirectories=[/data/app/com.dianjin.caicai-1/lib/x86, /system/lib, /vendor/lib]]

Didn't|Didn't find class "MyApplication" on path: DexPathList[apk"],nativeLibraryDirectories=[lib]]
文章图片
打开android studio 的File → Settings → Build,Execution,Deployment → Instant Run将 Instant Run关掉,如:下图
Didn't|Didn't find class "MyApplication" on path: DexPathList[apk"],nativeLibraryDirectories=[lib]]
文章图片
clear project 清理一下项目,然后重新运行项目

    推荐阅读