G
Gautam_gauti
Guest
// I am trying to sign my APK to publish it on the store, I am getting following error. I do not get this error while building my Application, though.
Error:Execution failed for task ':app:transformClassesWithJarMergingForRelease'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: org/npci/upi/security/services/BuildConfig.class
// This is my build.Gradle file.I have added SDK for payments and one for analytics.
Error:Execution failed for task ':app:transformClassesWithJarMergingForRelease'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: org/npci/upi/security/services/BuildConfig.class
// This is my build.Gradle file.I have added SDK for payments and one for analytics.
Code:
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 is for 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'
}
Last edited by a moderator: