Android Studio 3.4: сбой при выполнении задачи ": app: transformDexArchiveWithExternalLibsDexMergerForDebug" - PullRequest
0 голосов
/ 23 апреля 2020

Я получаю эту ошибку, когда пытаюсь построить проект

Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: /Users/.../app/build/intermediates/transforms/dexBuilder/debug/0.jar

И вот мой файл градла:

apply plugin: 'com.android.application'

android {compileSdkVersion 28 buildToolsVersion '27 .0.3 ' defaultConfig {applicationId "com.game.game"

    javaCompileOptions {
        annotationProcessorOptions {
            includeCompileClasspath true
        }
    }
    multiDexEnabled true
    minSdkVersion 21
    targetSdkVersion 28
    versionCode 2
    versionName "1"

}

android {
    aaptOptions {
        cruncherEnabled = false
    }
}

buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.google.android.material:material:1.0.0'


implementation 'androidx.appcompat:appcompat:1.0.0'

implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.android.ads.consent:consent-library:1.0.7'
implementation 'com.google.android.gms:play-services-ads:17.2.1'
implementation 'com.intuit.sdp:sdp-android:1.0.5'
implementation 'com.google.firebase:firebase-core:16.0.9'
implementation 'com.google.firebase:firebase-config:17.0.0'
implementation 'com.wang.avi:library:2.1.3'
implementation 'com.onesignal:OneSignal:[3.11.2, 3.99.99]'
implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'

}

apply plugin: 'com.google.gms.google-services'

Я потратил 2 дня, пытаясь решить эту проблему без результатов, я пытался добавить android .enableJetifier = true android .useAndroidX = true org.gradle.jvmargs = -Xmx1536m для свойств градл, но без результатов

Заранее спасибо

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