(1)运行Zxing ( https://github.com/zxing/zxing ) 中的android项目。CaptureActivity的配置绝对没有问题,在小米,一加手机都能运行成功,但是在OPPO R11 S出现如下的错误。
Caused by: java.lang.ClassNotFoundException: Didn’t find class “com.google.zxing.client.android.CaptureActivity” on path: DexPathList[[zip file “/data/app/com.google.zxing.client.android-2/base.apk”],nativeLibraryDirectories=[/data/app/com.google.zxing.client.android-2/lib/arm64, /system/lib64, /vendor/lib64]]
解决方法:
Setting –> Build, Execution, Deployment –> Instant Run –> 取消勾选Enable Instant Run to hot swap code/resource changes on deploy(default enabled)
(2)