关于android:如何修复\\’Manifest merge failed with multiple errors,\\’错误? | 珊瑚贝

How to fix ‘ Manifest merger failed with multiple errors,’ error?


我正在将 FIREBASE 连接到我当前工作的 AndroidStudio 项目,在实现所有库之后,我遇到了一个错误。

“ERROR: Manifest merger failed with multiple errors, see logs”

我该怎么办..?

这是错误,我得到了什么

Dependencies using groupId com.android.support and androidx.* can not be combined but found IdeMavenCoordinates{myGroupId=’com.android.support’, myArtifactId=’cardview-v7′, myVersion=’28.0.0′, myPacking=’aar’, myClassifier=’null’} and IdeMavenCoordinates{myGroupId=’androidx.swiperefreshlayout’, myArtifactId=’swiperefreshlayout’, myVersion=’1.0.0′, myPacking=’aar’, myClassifier=’null’} incompatible dependencies less… (Ctrl+F1)
Inspection info:There are some combinations of libraries, or tools and libraries, that are incompatible, or can lead to bugs. One such incompatibility is compiling with a version of the Android support libraries that is not the latest version (or in particular, a version lower than your targetSdkVersion). Issue id: GradleCompatibleenter ima[enter image description here]1ge description here

  • 发布您的 build.gradle 文件


同时使用 androidx 和 android 支持库应该会出现此问题。使用 IDE 中的 Refactor > Migrate to AndroidX 将整个项目迁移到 AndroidX。迁移到 AndroidX 后,重新检查您的 gradle.properties 文件中是否有这两行:

1
2
android.useAndroidX=true
android.enableJetifier=true

将这两个 gradle 插件标志设置为 true 意味着 Android 插件将使用适当的 AndroidX 库而不是支持库

  • 谢谢 aaksh ,但我已经完成了以下步骤。但我仍然面临同样的错误


n

  • 谢谢 Abdur ,已经完成但仍然面临同样的错误。实际上我的android studio项目已经安装在我的android设备上……但它没有运行……


来源:https://www.codenong.com/57114818/

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_9292.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?