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]]

打开android studio 的File → Settings → Build,Execution,Deployment → Instant Run将 Instant Run关掉,如:下图

Didn't find class

clear project 清理一下项目,然后重新运行项目

你可能感兴趣的:(Didn't find class "MyApplication" on path: DexPathList[apk"],nativeLibraryDirectories=[lib]])