美文网首页
Andorid Unable to instantiate ap

Andorid Unable to instantiate ap

作者: _凌浩雨 | 来源:发表于2020-07-26 18:48 被阅读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"
    >
    

    相关文章

      网友评论

          本文标题:Andorid Unable to instantiate ap

          本文链接:https://www.haomeiwen.com/subject/qwkglktx.html