parse-community / ParseUI-Android

ParseUI contains user interface libraries for building apps with the Parse Android SDK.
Other
592 stars 323 forks source link

Problem with duplicate entry AbstractQueryController #112

Open ndacosta opened 8 years ago

ndacosta commented 8 years ago

I'm traying to compile my project and getting this error

Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/parse/AbstractQueryController$1.class

my gradle file looks like this:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "com.example.mydeveloperhub"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    dexOptions {
        incremental true
        javaMaxHeapSize "4g"
    }
}

   dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.1.1'
    compile ('com.parse:parseui-widget-android:0.0.1')
    compile ('com.android.support:multidex:1.0.1' )
}
wangmengyan95 commented 8 years ago

Hi @ndacosta, the exception you mention means there are multiple AbstractQueryController in your dependencies. Since you have compile fileTree(dir: 'libs', include: ['*.jar']), I am curious what is in your local dependicies, do you also include Parse.jar?