android - Cannot add Google Play split libraries -


i followed tutorial @ http://developer.android.com/google/play-services/setup.html#split got error

error:execution failed task ':app:processdebugresources'. 

error: more 1 library package name 'com.google.android.gms' can temporarily disable error android.enforceuniquepackagename=false however, temporary , enforced in 1.0

i tried looking around here of them because have library has google-play-services believe not case. gradle:

android {     compilesdkversion 22     buildtoolsversion '22.0.1'      defaultconfig {         applicationid "com.android.test"         minsdkversion 14         targetsdkversion 22         versioncode 21         versionname "1.1"         multidexenabled true     }      dexoptions {         javamaxheapsize "4g"     }      buildtypes {         release {             minifyenabled false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'         }     }      sourcesets {         main {             res.srcdirs =                     [                             'src/main/res/layout/activity',                             'src/main/res/layout/adapter',                             'src/main/res/layout/fragment',                             'src/main/res/layout/custom',                             'src/main/res',                             'src/main/rescamera',                             'src/main/res_swipecards'                     ]         }     }      packagingoptions {         exclude 'meta-inf/dependencies.txt'         exclude 'meta-inf/license.txt'         exclude 'meta-inf/notice.txt'         exclude 'meta-inf/notice'         exclude 'meta-inf/license'         exclude 'meta-inf/dependencies'         exclude 'meta-inf/notice.txt'         exclude 'meta-inf/license.txt'         exclude 'meta-inf/dependencies.txt'         exclude 'meta-inf/lgpl2.1'     } }  dependencies {     compile filetree(include: ['*.jar'], dir: 'src/libs')     compile files('src/libs/android-viewbadger.jar')     compile 'io.realm:realm-android:0.79.0'     compile 'com.squareup.retrofit:retrofit:1.8.0'     compile 'com.squareup.okhttp:okhttp-urlconnection:2.0.0'     compile 'com.squareup.okhttp:okhttp:2.0.0'     compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.3'     compile project(':pulltorefreshlibrary')     compile project(':facebooksdk')     compile project(':simplefacebook')     compile project(':androidtouchgallery')     compile project(':camera')     compile 'com.google.android.gms:play-services-gcm:7.3.0'     compile 'com.google.android.gms:play-services-ads:7.3.0'     compile 'com.google.android.gms:play-services-location:7.3.0'     compile 'net.hockeyapp.android:hockeysdk:3.0.2'     compile 'joda-time:joda-time:2.6'     compile('de.keyboardsurfer.android.widget:crouton:1.8.5@aar') {         exclude group: 'com.google.android', module: 'support-v4'     }     compile('com.playhaven.android:playhaven-api:2.2.6@aar') {         transitive = true     }     compile 'com.android.support:support-v4:22.0.0'     compile 'com.android.support:appcompat-v7:22.0.0'     compile 'com.android.support:multidex:1.0.0' } 

based on the playhaven api 2.2.6 pom, try excluding com.google.android.gms, not com.google.android.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -