![](/img/trans.png)
[英]Android build gradle failing, Error app:transformClassesWithMultidexlistForDebug'
[英]Build error for gradle in app
錯誤:任務':app:transformClassesWithMultidexlistForDebug'的執行失敗。
java.io.IOException:無法編寫[G:\\ new \\ Schat \\ app \\ build \\ intermediates \\ multi-dex \\ debug \\ componentClasses.jar](無法讀取[C:\\ Users \\ Dell.gradle \\ caches \\\\ transforms-1 \\ files-1.1 \\ support-core-ui-27.1.0.aar \\ 56bf57c0daa4e0ce1427f0af1690a5ff \\ jars \\ classes.jar(;;;;;; **。class)](重復的zip條目[classes.jar: android / support / design / widget / CoordinatorLayout $ Behavior.class]))
Build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
defaultConfig {
applicationId "com.example.sushem.schat"
minSdkVersion 15
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support:design:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.google.firebase:firebase-auth:11.8.0'
implementation 'com.android.support:support-v4:26.1.0'
implementation 'com.google.firebase:firebase-database:11.8.0'
implementation 'com.google.firebase:firebase-storage:11.8.0'
compile 'com.google.firebase:firebase-messaging:11.8.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-
core:3.0.1'
compile 'de.hdodenhof:circleimageview:2.2.0'
compile 'com.theartofdev.edmodo:android-image-cropper:2.6.0'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.squareup.okhttp:okhttp:2.5.0'
compile 'com.firebaseui:firebase-ui-database:3.2.2'
compile 'id.zelory:compressor:2.1.0'
compile 'com.android.support:multidex:1.0.2'
}
應用插件:“ com.google.gms.google-services”
使用最新版本的支持庫
implementation 'com.android.support:appcompat-v7:27.1.0'
implementation 'com.android.support:design:27.1.0'
感謝大家的幫助。 問題在於依賴性:
編譯'com.theartofdev.edmodo:android-image-cropper:2.6.0'
所以我刪除了它。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.