Multiple dex files define Lcom/google/android/gms/internal/zzau -




i error com.android.dex.dexexception: multiple dex files define lcom/google/android/gms/internal/zzau; when run app gradle files are

app.gradle

dependencies { compile filetree(include: ['*.jar'], dir: 'libs') compile 'com.android.support:support-v4:21.0.3' compile 'com.android.support:appcompat-v7:21.0.3' compile 'com.android.support:recyclerview-v7:21.0.0' compile 'com.android.support:cardview-v7:21.0.0' compile 'com.google.android.gms:play-services:7.0.+' compile 'com.android.support:mediarouter-v7:21.0.3' compile 'com.squareup:otto:1.3.5' compile 'com.squareup.picasso:picasso:2.3.4' compile 'com.squareup.okhttp:okhttp:2.2.0' compile 'com.squareup.okhttp:okhttp-urlconnection:2.2.0' compile 'com.squareup.retrofit:retrofit:1.9.0' compile 'com.github.ksoichiro:android-observablescrollview:1.4.0' compile 'com.astuetz:pagerslidingtabstrip:1.0.1' compile 'com.facebook.android:facebook-android-sdk:4.1.0' compile 'com.parse.bolts:bolts-android:1.+' compile 'com.edmodo:rangebar:1.0.0' compile 'com.melnykov:floatingactionbutton:1.3.0' compile project(':library_viewpager') compile project(':androidhorizontallistview') compile project(':castcompanionlibrary') compile project(':mobihelp_sdk_android_v1.4') compile filetree(include: 'parse-*.jar', dir: 'libs') compile files('libs/parse-1.9.2.jar') compile files('libs/googleconversiontrackingsdk-2.2.2.jar') } 

castcompanionlibrary

dependencies { compile 'com.android.support:appcompat-v7:22.+' compile 'com.android.support:mediarouter-v7:22.+' compile 'com.google.android.gms:play-services-cast:7.5.0' } 

how fix this? guess error occurs because use google play services in both module , app. versions different. causing issue?

i had similar problem , question helped me solve mine , solve yours. problem have defined:

dependencies { ...   compile 'com.google.android.gms:play-services-cast:7.5.0' } 

and

dependencies { ...   compile 'com.google.android.gms:play-services:7.0.+' ... } 

since google services 7.5.0, if you're using single modules play services can't use whole play services dependency simultaneously. solution select services need instead of whole package e.g.:

instead of

dependencies { ...   compile 'com.google.android.gms:play-services:7.0.+' ... } 

use

dependencies { ...   compile 'com.google.android.gms:play-services-maps:7.0.+'   compile 'com.google.android.gms:play-services-location:7.0.+'   compile 'com.google.android.gms:play-services-gcm:7.0.+' ... } 

also i'm not sure idea use same version of google services in both gradle configs.





wiki

Comments

Popular posts from this blog

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -

Asterisk AGI Python Script to Dialplan does not work -