首页 > 解决方案 > 重复条目错误重复条目:android/support/v4/app/INotificationSideChannel$Stub$Proxy.class

问题描述

我的应用程序运行良好,我能够发布 APK。但是当我添加最新的 Google play 服务库时:compile 'com.google.android.gms:play-services-ads:19.5.0'。然后它在 Relasing 签名的 APK 期间开始显示此错误。

错误: 任务 ':app:transformClassesWithJarMergingForRelease' 执行失败。> com.android.build.api.transform.TransformException:java.util.zip.ZipException:重复条目:android/support/v4/app/INotificationSideChannel$Stub$Proxy.class

我的 build.gradle 是:

android {
compileSdkVersion 30
buildToolsVersion "28.0.2"
defaultConfig {
    applicationId "com.cricket.livematch"
    minSdkVersion 15
    targetSdkVersion 30
    versionCode 1
    versionName = "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    multiDexEnabled true
    ndk.abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'

}
 lintOptions {
    checkReleaseBuilds false
    // Or, if you prefer, you can continue to check for errors in release builds,
    // but continue the build even when errors are found:
    abortOnError false

}
 }

依赖 {

    compile 'com.android.support:design:25.4.0'
        compile 'com.github.bumptech.glide:glide:3.6.1'
        compile 'com.crowdfire.cfalertdialog:cfalertdialog:1.1.0'
        compile 'com.android.support.constraint:constraint-layout:1.0.2'
        compile 'androidx.appcompat:appcompat:1.0.2'
        compile 'com.google.android.gms:play-services-ads:19.5.0'

}

标签: androidandroid-studiogoogle-play-servicesnavigation-drawer

解决方案


推荐阅读