Caused by: java.lang.ClassNotFoundException

Caused by: java.lang.ClassNotFoundException

Android AS项目:同一个工程华为手机运行没问题,再小米手机运行包如上错误,用了很多baiduGoogle的方法都没解决,求助下各位,谢谢

Caused by: java.lang.ClassNotFoundException: Didn't find class "uk.co.senab.photoview.PhotoView" on path: DexPathList[[zip file "/data/app/com.longney.dslrpan-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.longney.dslrpan-1, /vendor/lib, /system/lib]]



解决方案:

             步骤一:在app.gradle的android{}下添加

defaultConfig {
    multiDexEnabled true
}
步骤二:该项目的application继承multidexApplication

即可;


你可能感兴趣的:(Caused by: java.lang.ClassNotFoundException)