Android Studio清单合并失败,出现多个错误

时间:2019-07-11 18:01:55

标签: android firebase android-manifest

完成对Android的所有SDK设置并尝试对其进行编译后,出现以下错误:“清单合并失败,并出现多个错误”。我在gradle文件中添加了以下依赖库。我正在尝试从过去两天开始解决此问题,但没有成功

  • AndroidStudio 3.4
  • 科特林1.3.21
  • 5.4.1-全部

等级:

dependencies {

    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support:support-v4:28.0.0'
    implementation 'com.android.support:design:28.0.0'
    implementation 'com.android.support:cardview-v7:28.0.0'
    testImplementation 'junit:junit:4.12'

    implementation 'com.android.support:multidex:1.0.3'
    implementation 'com.wang.avi:library:2.1.3'
    implementation 'com.sothree.slidinguppanel:library:3.3.1'
    implementation 'com.squareup:seismic:1.0.2'
    implementation 'com.github.bumptech.glide:glide:3.7.0'
    implementation 'jp.wasabeef:blurry:2.1.0'
    implementation 'com.nshmura:snappysmoothscroller:1.0.0'
    implementation 'com.simplecityapps:recyclerview-fastscroll:1.0.16'
    implementation 'org.jsoup:jsoup:1.9.2'
    implementation 'com.squareup.okhttp:okhttp:2.7.5'
    implementation 'com.getkeepsafe.taptargetview:taptargetview:1.9.1'
    implementation 'com.sackcentury:shinebutton:0.1.7'
    implementation project(':dialogs')
    implementation 'com.google.firebase:firebase-ads:17.1.3'
    implementation 'com.google.firebase:firebase-core:16.0.7'
    implementation 'com.google.android.gms:play-services-auth:16.0.1'
    implementation 'com.google.firebase:firebase-messaging:17.3.4'
    implementation 'com.google.firebase:firebase-database:16.0.6'
    implementation 'com.google.firebase:firebase-invites:16.1.0'
    implementation 'com.google.firebase:firebase-storage:16.0.5'
    implementation 'com.google.firebase:firebase-config:16.3.0'
    implementation 'com.google.code.gson:gson:2.8.5'

    implementation 'com.theartofdev.edmodo:android-image-cropper:2.6.0'

    implementation 'com.jakewharton:butterknife:8.8.1'
    kapt 'com.jakewharton:butterknife-compiler:8.8.1'

    implementation 'com.github.takahirom.downloadable.calligraphy:downloadable-calligraphy:0.1.3'

    implementation 'com.google.android:flexbox:1.0.0'

    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

    implementation 'com.squareup.retrofit2:retrofit:2.5.0'
    implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
    implementation 'com.squareup.okhttp3:logging-interceptor:3.9.1'
    implementation 'com.onesignal:OneSignal:[3.9.1, 3.99.99]'
}

我在项目中使用了上面的依赖关系,但是某些库彼此冲突。

1 个答案:

答案 0 :(得分:0)

您可以在XML元素下面添加一行以告知清单合并,您的应用清单是应用中的最高优先清单

tools:node="merge

请阅读pipenv以获得更多信息

希望获得帮助