【问题标题】:Problem with merge manifest in React Native AndroidReact Native Android 中的合并清单问题
【发布时间】:2019-06-19 09:26:43
【问题描述】:

我正在使用 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.

我的app/build.gradle 依赖项:

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
}

包:

"react-native": "0.59.3", "react": "16.8.3",

【问题讨论】:

    标签: android react-native android-manifest release fastlane


    【解决方案1】:

    您的问题可能是由于 react-native-device-info(可能还有另一个依赖项)使用了最新的 Google Play Services GCM,它依赖于 AndroidX。 您可以更新到最新版本 (yarn upgrade react-native-device-info@2.1.2),如果它不能解决您的问题,请检查这些答案:

    Stack Overflow

    Github: Android : Unable to build app

    【讨论】:

      猜你喜欢
      • 2023-01-04
      • 1970-01-01
      • 2021-12-16
      • 1970-01-01
      • 2020-01-26
      • 2021-03-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多