问题
Unable to instantiate appComponentFactory
java.lang.ClassNotFoundException: Didn't find class "<包名>.1" on path: DexPathList[[zip file "/data/app/<包名>-eiFfo0VnFXuJbVJEHrJ_YA==/base.apk"],nativeLibraryDirectories=[/data/app/<包名>-eiFfo0VnFXuJbVJEHrJ_YA==/lib/arm,/data/app/<包名>-eiFfo0VnFXuJbVJEHrJ_YA==/base.apk!/lib/armeabi-v7a, /system/lib]]
解决方法
打开AndroidManifest.xml文件,在Application节点中删除如下两行
<application
...
# 删除这两行
tools:replace="android:appComponentFactory"
android:appComponentFactory="1"
>
网友评论