android - Build APK error? -
i tried build apk comes out this. should do? please help!!
i don't problem. project fine when build project, come error when build apk.
error:execution failed task':app:transformclasseswithjarmergingfordebug'.
com.android.build.api.transform.transformexception: java.util.zip.zipexception: duplicate entry: com/google/android/gms/auth/api/signin/internal/zzf.class
here gradle file
apply plugin: 'com.android.application' android { compilesdkversion 23 buildtoolsversion '25.0.0' defaultconfig { applicationid 'com.androidbelieve.seedate' minsdkversion 19 targetsdkversion 24 versioncode 1 versionname "1.0" uselibrary 'org.apache.http.legacy' multidexenabled true } 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' } buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } repositories { jcenter { url "http://jcenter.bintray.com/" } } productflavors { } compileoptions { sourcecompatibility javaversion.version_1_7 targetcompatibility javaversion.version_1_7 } } dependencies { compile filetree(include: ['*.jar'], dir: 'libs') compile 'com.android.support:appcompat-v7:22.2.1' compile 'com.google.android.gms:play-services-ads:10.0.1' compile 'com.android.support:design:22.2.1' compile 'com.android.support:cardview-v7:22.2.1' compile 'com.android.support:recyclerview-v7:22.2.1' compile 'com.mcxiaoke.volley:library:1.0.18' compile 'com.github.bumptech.glide:glide:3.6.0' compile 'de.hdodenhof:circleimageview:1.3.0' compile 'com.android.support:support-v4:22.2.1' compile 'it.neokree:materialnavigationdrawer:1.3.3' compile 'com.android.support.constraint:constraint-layout:1.0.2' compile 'com.google.android.gms:play-services-maps:10.0.1' compile 'com.google.code.findbugs:jsr305:2.0.1' compile 'com.google.firebase:firebase-core:10.0.1' compile 'com.google.firebase:firebase-auth:10.0.1' compile 'com.firebase:firebase-client-android:2.5.0' compile 'com.google.firebase:firebase-database:10.0.1' compile 'com.google.firebase:firebase-messaging:10.0.1' compile 'com.firebaseui:firebase-ui:0.6.0' } apply plugin: 'com.google.gms.google-services'
gradle project
buildscript { repositories { jcenter() mavencentral() } dependencies { classpath 'com.android.tools.build:gradle:2.3.3' classpath 'com.google.gms:google-services:3.1.0' // note: not place application dependencies here; belong // in individual module build.gradle files } } allprojects { repositories { jcenter() } }
did tried build/clean project in android studio menu
Comments
Post a Comment