当前位置:   article > 正文

Suggestion: add ‘tools:replace=“android:appComponentFactory“‘错误处理_suggestion: add 'tools:replace="android:appcompone

suggestion: add 'tools:replace="android:appcomponentfactory"' to

 在代码环境下移植一个android studio下的应用到环境里,增加Android.mk后报了错误:

Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from AndroidManifest.xml:24:18-86
        is also present at AndroidManifest.xml:24:18-91 value=(android.support.v4.app.CoreComponentFactory).
        Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml.fixed:6:5-50:19 to override.
10:10:02 ninja failed with: exit status 1

经过尝试,需要把Android.mk:

LOCAL_STATIC_JAVA_LIBRARIES := \
    android-support-v4 \

android-support-v4需要删除,重新编译ok。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Guff_9hys/article/detail/993213?site
推荐阅读
相关标签