Andorid Unable to instantiate ap
2020-07-26 本文已影响0人
_凌浩雨
问题
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"
>