Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with duplicate entry AbstractQueryController #112

Open
ndacosta opened this issue Dec 19, 2015 · 1 comment
Open

Problem with duplicate entry AbstractQueryController #112

ndacosta opened this issue Dec 19, 2015 · 1 comment
Labels

Comments

@ndacosta
Copy link

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
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants