React Native Android构建错误:清单合并失败:属性application @ appComponentFactory

野山周杰伦

突然出现了此构建错误(无处不在),该错误在早上运行良好。

我尝试启用AndroidX标志,但未发现ViewCompat类问题。所以我回滚了。自昨天以来,我没有进行任何更改,直到今天它都没有任何问题。

是否因为此版本

如果有人可以帮忙,那会很好。

* What went wrong:
Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : 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:7:5-117 to override.


// package.json

"dependencies": {
    "accordion-collapse-react-native": "^0.1.9",
    "accounting-js": "^1.1.1",
    "appcenter": "2.0.0",
    "appcenter-analytics": "2.0.0",
    "appcenter-crashes": "2.0.0",
    "appcenter-push": "2.0.0",
    "axios": "^0.18.0",
    "fusioncharts": "^3.13.5",
    "immutability-helper": "^3.0.0",
    "lodash": "^4.17.11",
    "lottie-react-native": "^2.5.11",
    "moment": "^2.24.0",
    "react": "16.8.3",
    "react-native": "0.59.8",
    "react-native-app-link": "^1.0.0",
    "react-native-base64": "0.0.2",
    "react-native-camera": "^2.9.0",
    "react-native-charts-wrapper": "^0.5.1",
    "react-native-check-box": "^2.1.7",
    "react-native-code-push": "^5.6.0",
    "react-native-device-info": "^2.0.1",
    "react-native-elements": "^1.1.0",
    "react-native-gesture-handler": "^1.1.0",
    "react-native-keyboard-aware-scroll-view": "^0.8.0",
    "react-native-material-dropdown": "^0.11.1",
    "react-native-modal": "^11.0.1",
    "react-native-orientation": "^3.1.3",
    "react-native-paper": "^2.15.0",
    "react-native-photo-upload": "^1.3.0",
    "react-native-picker-select": "^6.1.1",
    "react-native-select-input-ios": "^2.0.2",
    "react-native-svg": "^9.4.0",
    "react-native-svg-uri": "^1.2.3",
    "react-native-vector-icons": "^6.4.2",
    "react-native-webview": "^5.12.0",
    "react-navigation": "^3.8.1",
    "react-redux": "^6.0.1",
    "redux": "^4.0.1",
    "redux-thunk": "^2.3.0"
},

dependencies {
    implementation project(':appcenter')
    implementation project(':appcenter-crashes')
    implementation project(':appcenter-analytics')
    implementation project(':react-native-orientation')
    implementation project(':react-native-webview')
    implementation project(':lottie-react-native')
    implementation project(':appcenter-push')
    implementation project(':react-native-device-info')
    implementation project(':react-native-fs')
    implementation project(':react-native-image-resizer')
    implementation project(':react-native-image-picker')
    implementation project(':react-native-camera')
    implementation project(':react-native-code-push')
    implementation project(':react-native-svg')
    implementation project(':react-native-gesture-handler')
    implementation project(':react-native-vector-icons')
    implementation 'com.facebook.fresco:animated-gif:1.10.0'


    implementation "com.google.android.gms:play-services-base:16.0.1"
    implementation ("com.google.firebase:firebase-core:16.0.6")

    implementation('com.google.firebase:firebase-messaging:17.3.4')

    implementation ('com.google.firebase:firebase-iid:17.0.4') {
        force = true
    }

    implementation fileTree(dir: "libs", include: ["*.jar"])
    implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
    implementation "com.facebook.react:react-native:+"  // From node_modules


}
尼尔斯·贝克

今天早上我也遇到了同样的问题。

我通过更新解决了它react-native-app-auth,并react-native-device-info给他们的最新版本。

npm install react-native-app-auth && npm install react-native-device-info

要么

yarn add react-native-app-auth && yarn add react-native-device-info

无需更新到AndroidX。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

错误:清单合并失败:属性application @ appComponentFactory

清单合并失败:属性application @ appComponentFactory

清单合并失败:属性application @ appComponentFactory

错误:清单合并失败:属性 application@appComponentFactory 值

React Native-在包'android'中找不到属性'appComponentFactory'的资源标识符

清单合并失败:属性application @ appComponentFactory ... Android Studio 3.2

清单合并失败:添加Exoplayer 2.10.5后,属性application @ appComponentFactory

清单合并失败:属性 application@appComponentFactory Google Play 服务

清单合并失败:属性application @ appComponentFactory-Androidx

清单合并失败:属性application @ appComponentFactory(android.support.v4.app.CoreComponentFactory)

清单合并失败:属性应用@ appComponentFactory更新火力地堡库

如何修复React-Native Android中的“清单合并失败”?

构建失败:React Native Android

工具:replace="android:appComponentFactory 错误

清单合并失败:属性应用@ appComponentFactory并不能解决这个

React Native Android版本构建失败-Gradle

React-native构建失败

React Native Android 失败:错误 3

“ React-native android构建失败:” ... AAPT:错误:未找到资源android:attr / fontVariationSettings。“

React Native Signed APK构建失败的Lint错误

关于appComponentFactory的AndroidX构建在发布模式下失败

React Native 0.57.7-Android构建失败于任务:app:mergeReleaseResources

CI/CD BitRise React Native Android 构建失败

React Native FlatList的错误

AsyncStorage - 错误(React Native)

React Native - PhaseScriptExecution 错误

清单合并失败。添加并链接了react-native-device-info之后

在 React Native 中构建 Apk 失败

React Native-构建版本失败