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
同时使用 androidx 和 android 支持库应该会出现此问题。使用 IDE 中的
1
2 |
android.useAndroidX=true
android.enableJetifier=true |
将这两个 gradle 插件标志设置为 true 意味着 Android 插件将使用适当的 AndroidX 库而不是支持库
n
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/tech/269070.html