gradle - Error while trying to run app. Error: More than one library with package name 'com.google.android.gms' -
please not duplicate have tried other solution.
i keep getting error error: more 1 library package name 'com.google.android.gms'
apply plugin: 'com.android.application' android { compilesdkversion 23 buildtoolsversion "23.0.1" defaultconfig { applicationid "com.sensible" minsdkversion 15 targetsdkversion 23 multidexenabled true } buildtypes { release { } } } dependencies { compile project(':googleplayserviceslib') compile 'com.facebook.android:facebook-android-sdk:4.+' compile 'com.google.code.gson:gson:2.3.1' compile 'com.android.support:multidex:1.0.1' compile 'com.android.support:design:23.1.0' compile 'com.google.android.gms:play-services-ads:9.2.1' compile 'com.google.android.gms:play-services-analytics:9.2.1' compile 'com.google.android.gms:play-services-auth:9.2.1' compile 'com.google.android.gms:play-services-gcm:9.2.1' }
facebook sdks pull in google gms well, you'll need modify to:
compile ('com.facebook.android:facebook-android-sdk:4.+') { exclude group: 'com.google.android.gms' }
you might getting conflicts
compile project(':googleplayserviceslib')
Comments
Post a Comment