java.util.zip.ZipException: повторяющаяся запись во время packageAllDebugClassesForMultiDex при сборке APK - PullRequest
0 голосов
/ 09 октября 2018

Вызывается: com.android.build.api.transform.TransformException: java.util.zip.ZipException: дублирующаяся запись: retrofit2 / BuiltInConverters $ BufferingResponseBodyConverter.class

Приложение работает на симуляторе, а также наустройство, но выдает ошибку при сборке APK.Не дублируйте это: java.util.zip.ZipException: повторяющаяся запись во время 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'

}
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...