edit:
i changed line:
compile 'com.google.android.gms:play-services-analytics:8.1.0'
to:
compile 'com.google.android.gms:play-services-analytics:8.4.0'
i changed classpath be:
classpath 'com.google.gms:google-services:2.0.0-alpha7'
and updated gradle version 2.10 fix other issue mentioned. having error whenever build:
error:execution failed task ':app:processdebuggoogleservices'.
please fix version conflict either updating version of google-services plugin (information latest version available @ https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating version of com.google.android.gms 8.3.0.
--------------------------------------------------------------------------------------------------------------------------
original question
out of nothing, app wouldn't build. tried updating google-services , still getting error.
what went wrong: execution failed task ':app:transformclasseswithjarmergingfordebug'. com.android.build.transform.api.transformexception: java.util.zip.zipexception: duplicate entry: com/google/android/gms/ads/identifier/advertisingidclient$info.class
i getting error in gradle, @ line:
compile 'com.google.android.gms:play-services-analytics:8.1.0'
saying google libraries of version 8.4.0 , in 8.1.0. tried upgrading google library 8.4.0. gradle won't build , gives me following error:
warning:gradle version 2.10 required. current version 2.8. if using gradle wrapper, try editing distributionurl in /users/essam/desktop/apptuto/gradle/wrapper/gradle-wrapper.properties gradle-2.10-all.zip
here gradle
// top-level build file can add configuration options common sub-projects/modules. buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:1.3.0' classpath 'com.google.gms:google-services:1.4.0-beta3' // note: not place application dependencies here; belong // in individual module build.gradle files } } allprojects { repositories { jcenter() } }
the app gradle:
apply plugin: 'com.android.application' apply plugin: 'com.google.gms.google-services' apply plugin: "findbugs" apply plugin: "pmd" android { android { uselibrary 'org.apache.http.legacy' } compilesdkversion 23 buildtoolsversion "23.0.2" defaultconfig { applicationid "my package name written here" minsdkversion 14 targetsdkversion 23 versioncode 1 versionname "1.1" multidexenabled true } buildtypes { release { minifyenabled false shrinkresources false } debug { debuggable true } } } findbugs { ignorefailures = true toolversion = "2.0.1" reportsdir = file("$project.builddir/reports/findbugs") effort = "max" } pmd { ignorefailures = true reportsdir = file("$project.builddir/reports/pmd") rulesets = [ "basic", "braces" ] } dependencies { compile('com.mikepenz:materialdrawer:4.3.7@aar') { transitive = true } repositories { mavencentral() maven { url 'https://dl.bintray.com/intercom/intercom-maven' } } compile('io.intercom.android:intercom-sdk:1.+@aar') { transitive = true } compile 'com.android.support:appcompat-v7:23.1.1' compile 'com.pkmmte.view:circularimageview:1.1' compile 'com.facebook.android:facebook-android-sdk:4.0.0' compile 'com.github.bumptech.glide:glide:3.6.1' compile 'com.google.android.gms:play-services-analytics:8.1.0' compile 'org.apache.httpcomponents:httpclient:4.5' compile 'org.apache.httpcomponents:httpmime:4.2.3' compile 'com.mixpanel.android:mixpanel-android:4.6.4' compile 'info.hoang8f:android-segmented:1.0.6' compile 'com.android.support:design:23.1.1' compile 'com.android.support:multidex:1.0.1' compile 'com.android.support:support-v4:23.1.1'
}
it's rule google play services should using same version while can see 1 line using 8.1.0, might have library using 8.4.0 , edit yours 8.4.0 instead of 8.1.0
now other error, don't know, didn't happen me copied exact gradle , compiled
if kept appearing, try removing second line:
apply plugin: 'com.google.gms.google-services'
why using way?
Comments
Post a Comment