android - Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. -


am getting error while trying run project

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

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

build.gradle file:

android {     compilesdkversion rootproject.ext.compilesdkversion      buildtoolsversion rootproject.ext.buildtoolsversion     packagingoptions      {      exclude 'meta-inf/dependencies'      exclude 'meta-inf/notice'      exclude 'meta-inf/license'      exclude 'meta-inf/license.txt'      exclude 'meta-inf/notice.txt'     }  aaptoptions {     cruncherenabled = false }  dexoptions {     predexlibraries = false     incremental true     javamaxheapsize "4g" } }  dependencies {         compile filetree(dir: 'libs', include: ['*.jar'])         compile project(':bottom-bar')         compile project(':cropper') }androidtestcompile('com.android.support.test.espresso:espressocore:2.2.2',      {        exclude group: 'com.android.support', module: 'support-annotations'      })          testcompile "junit:junit:${rootproject.ext.junitversion}"  // multidex     compile 'com.android.support:multidex:1.0.1'      compile "com.android.support:appcompat- v7:${rootproject.ext.supportlibraryversion}"     compile    "com.android.support:design:${rootproject.ext.supportlibraryversion}"  // recyclerview     compile "com.android.support:recyclerview-v7:${rootproject.ext.supportlibraryversion}" // cardview     compile "com.android.support:cardview-  v7:${rootproject.ext.supportlibraryversion}"      compile 'com.google.android.gms:play-services:9.0.0'  // firebase     compile 'com.google.firebase:firebase-messaging:11.0.2'     compile 'com.google.firebase:firebase-core:11.0.2'     compile 'com.google.firebase:firebase-database:11.0.2'  // butterknife     compile 'com.jakewharton:butterknife:8.4.0'     apt 'com.jakewharton:butterknife-compiler:8.4.0'  // design compatibility resolution     compile 'com.intuit.sdp:sdp-android:1.0.3'  // retrofit api cals     compile 'com.google.code.gson:gson:2.6.2'     compile 'com.squareup.retrofit2:retrofit:2.0.2'     compile 'com.squareup.retrofit2:converter-gson:2.0.2'     compile 'com.squareup.okhttp3:logging-interceptor:3.3.0'  // picaso image loading     compile 'com.squareup.picasso:picasso:2.5.0'  // realm db inplace of sqlite     compile 'io.realm:realm-android:0.82.1'} 

let me know if needed other information. thank you.

try this

packagingoptions  {   exclude 'meta-inf/dependencies'   exclude 'meta-inf/notice'   exclude 'meta-inf/license'   exclude 'meta-inf/license.txt'   exclude 'meta-inf/notice.txt'   pickfirst  'meta-inf/license.txt' } 

Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -