错误:任务':app:transformClassesWithDexForDebug'的执行失败。构建APK时弹出错误
com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/auth/api/signin/internal/zzg;
当我打算构建APK时显示此错误消息。 这是什么意思?我该如何解决它?
这是我的依赖关系:
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.google.android.gms:play-services-maps:10.2.0'
compile 'com.android.support:design:25.3.1'
compile 'com.google.firebase:firebase-database:10.2.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:support-v4:25.3.1'
compile 'com.android.support:support-vector-drawable:25.3.1'
compile 'com.google.firebase:firebase-auth:10.2.0'
compile 'com.google.firebase:firebase-storage:10.2.0'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.github.sillebille:dynamic-calendar:1.0.1'
compile 'com.mcxiaoke.volley:library:1.0.19'
compile 'com.firebaseui:firebase-ui:0.6.2'
testCompile 'junit:junit:4.12'
你有很多的库。看到这个文档https://developer.android.com/studio/build/multidex.html –
@Ludy阿斯特拉德国我做到了,仍然没有工作。任何想法还有什么呢? –