由以下原因引起:com.android.build.api.transform.TransformException:java.util.zip.ZipException:重复条目:retrofit2 / BuiltInConverters $ BufferingResponseBodyConverter.class
应用程序正在模拟器上以及设备上运行,但是在构建APK时出现错误。 不能重复以下内容:java.util.zip.ZipException: duplicate entry during packageAllDebugClassesForMultiDex
实现了以上链接中提供的所有解决方案,但错误仍然相同。 我的build.gradle文件:
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion "26.0.3"
defaultConfig {
applicationId "com.gym.gangsterstrength"
minSdkVersion 16
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions {
checkReleaseBuilds false
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile project(':bottom-bar')
androidTes
tCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.github.stfalcon:chatkit:0.3.1'
testCompile 'junit:junit:4.12'
compile 'com.squareup.retrofit2:retrofit:2.4.0'
compile 'com.google.code.gson:gson:2.8.2'
compile 'com.squareup.retrofit2:converter-gson:2.3.0'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.github.florent37:camerafragment:1.0.7'
compile 'org.aspectj:aspectjrt:1.8.2'
compile 'com.googlecode.mp4parser:isoparser:1.0.5.4'
// Amazon s3 files
compile 'com.amazonaws:aws-android-sdk-core:2.2.13'
compile 'com.amazonaws:aws-android-sdk-cognito:2.2.13'
compile 'com.amazonaws:aws-android-sdk-s3:2.2.13'
compile 'com.amazonaws:aws-android-sdk-ddb:2.2.13'
compile 'com.beardedhen:androidbootstrap:2.3.2'
compile 'com.chauthai.swipereveallayout:swipe-reveal-layout:1.4.1'
compile 'com.android.support:appcompat-v7:26.1.0'
compile 'com.github.stfalcon:chatkit:0.3.1'
}