无法合并android studio中的dex错误

rta7y2nd  于 2021-06-29  发布在  Java
关注(0)|答案(0)|浏览(343)

我正试图在android studio中构建我的移动项目,但任务“”的执行失败:app:transformdexarchivewithexternallibsdexmergerfordebug'.
java.lang.runtimeexception:com.android.builder.dexing.dexarchivemergerexception:无法合并dex

compileSdkVersion 30
defaultConfig {
    applicationId "com.sauhavadurumu.havadurumuapp"
    minSdkVersion 21
    targetSdkVersion 30
    versionCode 1
    versionName "1.0"
    multiDexEnabled true
    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        signingConfig signingConfigs.config
    }
}

依赖项

implementation 'androidx.appcompat:appcompat:1.3.0-alpha02'
implementation "androidx.constraintlayout:constraintlayout:2.0.4"
implementation 'com.android.volley:volley:1.1.1'
implementation 'com.toptoche.searchablespinner:searchablespinnerlibrary:1.3.1'
testImplementation 'junit:junit:4.12'
//implementation 'com.google.firebase:firebase-core:16.0.7'
implementation 'com.github.delight-im:Android-SimpleLocation:v1.0.1'

//I comment this library because of its not suitable for androidX
//androidTestImplementation 'com.android.support.test:runner:1.0.1'

//And i add this library
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
implementation 'com.android.support:multidex:1.0.3'

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题