Start a new topic

Duplicate entry Error

 On trying to build the kinvey libraries in Gradle initially i was getting the Exception 2 error, which is for more than 65k dex limit. Which i had fixed by adding multiDexMethod to True.


After this is received the next error which is:


for task ':app:transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/kinvey/android/AbstractAsyncUser$1.class


I am not sure how to fix this, i tried looking into other topics but all i could see was people mentioning to remove the redundant java api core file. 


My Gradle FIle:


android {
compileSdkVersion 23
buildToolsVersion "23.0.2"

defaultConfig {
applicationId "com.example.neb3cob.wermi"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
//https://support.kinvey.com/support/discussions/topics/12000001692
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

repositories {
flatDir {
dirs 'libs'
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
compile 'com.google.android.gms:play-services:8.4.0'
compile(name:'kinvey-android-2.10.4', ext:'aar')
//https://support.kinvey.com/support/discussions/topics/12000001313 KINVEY FIX

}


Could you help me out here. Thanks in advance

Login or Signup to post a comment