在代码环境下移植一个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。