我想制作Android聊天应用程序并面临以下错误:

时间:2016-10-13 18:38:47

标签: android

  

错误:任务':app:transformClassesWithJarMergingForDebug'执行失败。 > com.android.build.api.transform.TransformException:java.util.zip.ZipException:重复条目:com / parse / AbstractQueryControlle

并且

My Gradle.build赞:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.3"

    dexOptions {
        // Prevent OutOfMemory with MultiDex during the build phase
        javaMaxHeapSize "4g"
    }

    defaultConfig {
        multiDexEnabled true
        applicationId "myfirstapp.sohail.smartchat"
        minSdkVersion 16
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])    
    testCompile 'junit:junit:4.12'

    compile 'com.android.support:appcompat-v7:23.1.1'    
    compile 'com.parse:parse-android:1.13.1'

    compile 'com.parse:parseinterceptors:0.0.2'    
    compile 'com.squareup.picasso:picasso:2.5.2'   
}

1 个答案:

答案 0 :(得分:0)

parceinceptors需要在debugCompile块中compile而不是dependency

请参阅:https://github.com/ParsePlatform/ParseInterceptors-Android