android - getting error during signed apk JarMergingForRelease failed -
i trying sign apk publish on store, getting following error. not error while building application, though.
error:execution failed task ':app:transformclasseswithjarmergingforrelease'. > com.android.build.api.transform.transformexception: java.util.zip.zipexception: duplicate entry: org/npci/upi/security/services/buildconfig.class i have tried lot of solutions, not resolve this.
this build.gradle file.i have added sdk payments , 1 analytics.
apply plugin: 'com.android.application' apply plugin: 'io.fabric' android { compilesdkversion 24 buildtoolsversion "24.0.1" defaultconfig { applicationid "....." minsdkversion 15 targetsdkversion 24 versioncode 4 versionname "1.1.1" multidexenabled true } buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } } repositories { maven { url 'https://maven.fabric.io/public' } /*this crop images*/ mavencentral() maven { url 'http://lorenzo.villani.me/android-cropimage/' } } buildscript { repositories { maven { url 'https://maven.fabric.io/public' } } dependencies { classpath 'io.fabric.tools:gradle:1.+' } } dependencies { compile filetree(include: ['*.jar'], dir: 'libs') testcompile 'junit:junit:4.12 compile files('libs/mpandroidchartlibrary-2-1-4.jar') compile('com.analytics.sdk.android:analytics:2.6.5@aar') { transitive = true; } compile 'com.android.support:appcompat-v7:24.1.1' compile 'com.android.support:design:24.1.1' compile 'com.maksim88:passwordedittext:v0.8' compile 'com.android.support:support-v4:24.1.1' compile 'com.github.siyamed:android-shape-imageview:0.9.3' compile 'com.squareup.picasso:picasso:2.4.0' compile 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1' compile 'com.github.ganfra:material-spinner:1.1.1' compile 'com.mcxiaoke.volley:library-aar:1.0.0' compile 'com.android.support:multidex:1.0.1' compile'com.google.android.gms:playserviceappindexing:8.1.0' compile project(':app_release') compile project(':securecomponent_release') compile project(':secure_component_sdk') compile'me.villani.lorenzo.android:androidcropimage:1.1.+' androidtestcompile 'com.android.support:multidexinstrumentation:1.0.1' }
Comments
Post a Comment