反应原生或ExpoKit中的Android Material和appcompat Manifest合并失败

反应原生或ExpoKit中的Android Material和appcompat Manifest合并失败,第1张

概述我将’android.support:appcompat-v7’更新为28.0.0.但它带来了构建错误.Attributeapplication@appComponentFactoryvalue=(android.support.v4.app.CoreComponentFactory)from[com.android.support:support-compat:28.0.0]AndroidManifest.xml:22:18-91isalsopres

我将’android.support:appcompat-v7’更新为28.0.0.

但它带来了构建错误.

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:8:5-23:19 to overrIDe.

然后我在Logcat中收到此错误:

Manifest merger Failed

我的app.gradle:

  configurations.all {    resolutionStrategy.force 'com.androID.support:design:28.0.0'    resolutionStrategy.force "com.androID.support:support-v4:28.0.0"    resolutionStrategy.force "com.androID.support:support-media-compat:28.0.0"  }...dependencIEs {  implementation 'com.androID.support:multIDex:1.0.1'  // Our dependencIEs  implementation 'com.androID.support:appcompat-v7:28.0.0'  implementation 'com.androID.support:appcompat-v7:28.0.0'}

我如何解决它?

我需要你的解决方案.

先感谢您.

解决方法:

将’react-native-device-info’升级到2.1.2版本为我修复了错误.见github.com/facebook/react-native/issues/25294#issuecomment-503024749

简而言之:库使用“services-gcm:”作为依赖项,最新的gcm版本导致了这个问题.

总结

以上是内存溢出为你收集整理的反应原生或ExpoKit中的Android Material和appcompat Manifest合并失败全部内容,希望文章能够帮你解决反应原生或ExpoKit中的Android Material和appcompat Manifest合并失败所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1100362.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-28
下一篇2022-05-28

发表评论

登录后才能评论

评论列表(0条)

    保存