Hello everybody. I have one problem when creating a signed apk using android studio.
I have a lot of searching on this subject, but I did not find a working solution in my case, iknow is a problem related to duplicate records in a class, but can someone tell me what I need to exclude.
I try to follow but not working.
{
exclude group: 'com.payu.custombrowser', module: 'customBrowser'
}
This is the error I get when creating a signed apk
Error: execution completed for the task. ': TransformClassesWithJarMergingForRelease'
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com / payu / custombrowser / BuildConfig.class
Below is my build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId "company.app.appname"
minSdkVersion 9
targetSdkVersion 23
multiDexEnabled true
}
aaptOptions {
useNewCruncher false
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
zipAlignEnabled true
}
}
}
dependencies {
compile 'com.android.support:multidex:1.0.1'
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':hellochartslibrary')
compile project(':customBrowser')
compile project(':facebook')
compile 'com.android.support:support-v4:23.3.0'
compile 'com.google.code.gson:gson:2.4'
compile 'com.google.android.gms:play-services:8.4.0'
compile 'com.android.support:appcompat-v7:23.3.0'
, . - , .
EDIT:
apk, , , , apk