android - Duplicate jar file Error -


error

failure: build failed exception.

  • what went wrong: execution failed task ':app:transformclasseswithjarmergingfordebug'.

    com.android.build.api.transform.transformexception: java.util.zip.zipexception: duplicate entry: com/google/android/gms/analytics/internal/command.class

i added following dependencies

dependencies { //compile 'com.google.android.gms:play-services:+' compile 'com.google.android.gms:play-services:8.4.0' compile 'com.google.android.gms:play-services-location:8.3.0' compile files('libs/twitter4j-core-4.0.2.jar') compile project(':devsmartandroid') compile project(':facebooksdk') compile project(':libphotoview') compile files('libs/android-support-v4.jar') compile project(':library') //compile 'com.google.android.gms:play-services-gcm:7.5.0' //compile 'com.google.android.gms:play-services-analytics:7.5.0' compile files('libs/gcm.jar') compile files('libs/libgoogleanalyticsservices.jar')  } 

:app:transformclasseswithjarmergingfordebug'. com.android.build.api.transform.transformexception: java.util.zip.zipexception: duplicate entry: com/google/android/gms/analytics/internal/command.class

problem here

 compile 'com.google.android.gms:play-services:8.4.0'  compile 'com.google.android.gms:play-services-location:8.3.0' 

you should call 1 finally

compile 'com.google.android.gms:play-services:8.4.0' 

edit

i assume libgoogleanalyticsservices.jar creating duplicate entry .

so can comment jar

compile files('libs/libgoogleanalyticsservices.jar')


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -