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'.
> 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
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), ''

repositories {
flatDir {
dirs 'libs'

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile ''
compile ''
compile ''
compile(name:'kinvey-android-2.10.4', ext:'aar')


Could you help me out here. Thanks in advance

Login or Signup to post a comment