1
In my Android Studio is giving the following error when trying to make a store apk:
Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
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/Internal/zzbw;
Could someone help me with this mistake.
Here are the dependencies of my build.Radle project
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2',
{
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:support-v4:24.2.1'
compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.android.support:recyclerview-v7:24.2.1'
compile 'com.nispok:snackbar:2.10.10'
compile 'com.android.support:design:24.2.1'
compile 'com.android.support:support-vector-drawable:24.2.1'
compile 'com.google.android.gms:play-services-appindexing:9.6.1'
compile 'com.google.android.gms:play-services-auth:9.6.1'
compile 'com.google.android.gms:play-services-fitness:9.6.1'
compile 'com.google.android.gms:play-services-wearable:9.6.1'
compile 'com.google.firebase:firebase-core:9.6.1'
compile 'com.google.firebase:firebase-messaging:9.6.1'
compile 'com.google.firebase:firebase-auth:9.6.1'
compile 'com.google.firebase:firebase-database:9.6.1'
testCompile 'junit:junit:4.12'
}
Are you using Multidex? https://developer.android.com/studio/build/multidex.html
– LeoSantana
I do not use multidex, in this case it is necessary?
– Fabio Nobre
Maybe it’s because you use bilbiotecas of support, play-services and firebase that have many calls to methods. When the application has more than 64k calls to methods then you need multidex. It is simple to enable, in the official documentation above explains well
– LeoSantana
Read this here: Configure Apps with Over 64K Methods
– viana