Android React-Native:React-Native快速映像与React-Native无法正常工作,它会给出错误消息
当我将React-native快速映像与React-native一起使用时,它会抛出一个错误Android React-Native:React-Native快速映像与React-Native无法正常工作,它会给出错误消息,android,react-native,build.gradle,android-manifest,react-native-android,Android,React Native,Build.gradle,Android Manifest,React Native Android,当我将React-native快速映像与React-native一起使用时,它会抛出一个错误 * What went wrong: Execution failed for task ':app:processDebugManifest'. > Manifest merger failed : Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from [
* What went wrong:
Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86
is also present at [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 value=(android.support.v4.app.CoreComponentFactory).
Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:7:5-138 to override.
我的app.gradle是
dependencies {
implementation project(':react-native-fast-image')
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
implementation "com.facebook.react:react-native:+" // From node_modules
}
我尝试过许多解决方案,比如在gradle.properties中添加以下代码
android.useAndroidX=true
android.enableJetifier=true
但解决方案不起作用
我该怎么办?我的问题已通过将react native fast image的版本从7.0.2降级到6.0.3我的问题已通过以下方式解决:
"react": "16.8.6",
"react-native": "0.60.4",
"react-native-fast-image": "^7.0.2",
"react": "16.8.6",
"react-native": "0.60.4",
"react-native-fast-image": "^7.0.2",