android - 重复条目错误重复条目: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'
}
解决方案
推荐阅读
- c++ - C++ 类方法:从另一个方法调用方法会跳过代码块
- python-3.x - 如何在 django 中创建取件电子邮件字段
- python - 将文件下载到特定位置?
- magit - 在 magit 中,如何识别远程的默认分支?
- wix - 当我使用 /quiet 参数从 CMD 运行 wix MSI 时,它不会启动
- c++ - 如何保存数组并在 C++ 上打印它们
- csv - 为 grafana 的 influx 上传器设置带注释的 csv
- django - Django 3.1.7 模型自定义约束
- git - 如何通过 git 从意外撤消 Android Studio 中的工作中恢复?
- python-3.x - 如何使用 FTP 服务器和 django rest api 上传文件....怎么做?