【问题标题】:Error: com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/pubnub/api/AbstractLogger.class错误:com.android.build.api.transform.TransformException:java.util.zip.ZipException:重复条目:com/pubnub/api/AbstractLogger.class
【发布时间】:2016-05-14 10:24:29
【问题描述】:

错误:任务 ':app:transformClassesWithJarMergingForDebug' 执行失败。

com.android.build.api.transform.TransformException:java.util.zip.ZipException:重复条目:com/pubnub/api/AbstractLogger.class

我在构建 gradle 时遇到了这个错误,谁能帮帮我????

【问题讨论】:

  • 您添加了两次相同的库。发布你的 build.gradle

标签: android-studio android-gradle-plugin build.gradle pubnub


【解决方案1】:
apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "io.atlanticlab.pubnubmaptracker"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"

            // Enabling multidex support.
            multiDexEnabled true

    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'),     'proguard-rules.pro'
        }
        debug {
            debuggable true
        }
    }
}

dependencies {
    //compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:23.0.0'
    compile 'com.google.android.gms:play-services:6.5.87'
    compile 'com.pubnub:pubnub-android-debug:3.7.10'
    compile 'com.pubnub:pubnub-android:3.7.10'
}

repositories {
    mavenCentral()
}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-05-28
    • 1970-01-01
    相关资源
    最近更新 更多