任务:app:transformClassesWithMultidexlistForDebug失败

时间:2019-09-14 05:42:55

标签: java android android-gradle-plugin

很多人都犯了同样的错误,他们的大多数解决方案都奏效了,但对我而言却不是。我只是看不到运行代码。

我尝试了clean/rebuildmultiDexEnabled true,还尝试了对我不了解的.gradle文件的调整。

apply plugin: 'com.android.application'

android {
    compileSdkVersion 29
    buildToolsVersion "29.0.2"
    defaultConfig {
        applicationId "com.example.qrbarcodescanner"
        minSdkVersion 15
        targetSdkVersion 29
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }

}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'me.dm7.barcodescanner:zxing:1.9'
    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test:runner:1.3.0-alpha02'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0-alpha02'
}

我只想摆脱讨厌的Task :app:transformClassesWithMultidexlistForDebug FAILED error。任何帮助将不胜感激。谢谢

0 个答案:

没有答案