React本机Android中的合并清单存在问题

React本机Android中的合并清单存在问题,android,react-native,android-manifest,release,fastlane,Android,React Native,Android Manifest,Release,Fastlane,我正在用fastlane bundle exec fastlane dev构建我的应用程序。 我在通过react native link链接图像资源后出现此错误 错误: > Task :app:processReleaseManifest FAILED /Users/sko/bmind/projects/BatteryGuru/android/app/src/main/AndroidManifest.xml:22:18-91 Error: Attribute application

我正在用fastlane bundle exec fastlane dev构建我的应用程序。 我在通过react native link链接图像资源后出现此错误

错误:

> Task :app:processReleaseManifest FAILED
/Users/sko/bmind/projects/BatteryGuru/android/app/src/main/AndroidManifest.xml:22:18-91 Error:
    Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91
    is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
    Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:10:5-38:19 to override.
套餐:

反应本机:0.59.3, 反应:16.8.3,

您的问题可能是由于react本机设备信息以及使用最新的Google Play Services GCM的另一个依赖关系造成的,该服务依赖于AndroidX。 您可以更新到本机设备的最新版本-info@2.1.2,如果无法解决问题,请检查以下答案:

dependencies {
    implementation project(':react-native-device-info')
    implementation project(':react-native-config')
    implementation project(':react-native-reanimated')
    implementation project(':react-native-sentry')
    implementation project(':easy-bluetooth-classic')
    implementation project(':react-native-svg')
    implementation project(':react-native-linear-gradient')
    implementation project(':react-native-i18n')
    implementation project(':react-native-vector-icons')
    implementation project(':react-native-gesture-handler')
    implementation fileTree(dir: "libs", include: ["*.jar"])
    implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
    implementation('com.crashlytics.sdk.android:crashlytics:2.10.1@aar') {
            transitive = true
        }
    implementation "com.facebook.react:react-native:+"  // From node_modules
}