gpt4 book ai didi

java - ZipException : transform duplicate entry com/google/android/gms/internal/zzez. 类

转载 作者:太空宇宙 更新时间:2023-11-04 10:21:37 31 4
gpt4 key购买 nike

当我尝试构建 APK 时,出现以下消息:

Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.

com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/internal/zzez.class

但是当我尝试调试应用程序时,它可以正常工作。

我已经删除了.gradle目录,但没有成功。

这是我的 build.gradle 应用程序文件:

buildscript {
repositories {
mavenCentral()
maven { url 'https://maven.fabric.io/public' }
}

dependencies {
classpath 'me.tatarka:gradle-retrolambda:3.2.2'
classpath 'io.fabric.tools:gradle:1.21.4'
}
}

apply plugin: 'com.android.application'
apply plugin: 'me.tatarka.retrolambda'

android {
compileSdkVersion 24
buildToolsVersion '26.0.2'

packagingOptions {
exclude 'META-INF/LICENSE'
exclude 'META-INF/services/com.fasterxml.jackson.core.JsonFactory'
exclude 'META-INF/NOTICE'
}

aaptOptions {
useNewCruncher false
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

useLibrary 'org.apache.http.legacy'

defaultConfig {
applicationId "com.DringMe.launcher.fr"
minSdkVersion 19
targetSdkVersion 23
multiDexEnabled true
}

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

repositories {
maven {
url 'http://repo.appspanel.com/appspanel-sdk-android/'
}
maven {
url 'https://jitpack.io'
}
}

dexOptions {
incremental true
javaMaxHeapSize "3g"
}
dependencies {
compile 'com.squareup.retrofit:retrofit:1.9.0'
compile 'com.squareup.retrofit:converter-simplexml:1.9.0'

compile 'com.jakewharton:butterknife:7.0.1'
// annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'


//noinspection GradleCompatible
compile 'com.android.support:design:24.2.1'
//noinspection GradleCompatible
compile 'com.google.android.gms:play-services-location:11.6.0'
compile 'com.google.android.gms:play-services-maps:11.6.0'
compile 'io.reactivex:rxandroid:1.0.1'
compile 'de.greenrobot:eventbus:2.4.0'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.pkmmte.view:circularimageview:1.1'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.github.sd6352051.niftydialogeffects:niftydialogeffects:1.0.0@aar'
compile 'com.hannesdorfmann.smoothprogressbar:library:1.0.0'
compile 'com.github.castorflex.smoothprogressbar:library-circular:1.0.0'

compile files('src/main/libs/edm.jar')
compile files('src/main/libs/rc.jar')
compile files('src/main/libs/cdm.jar')
compile files('src/main/libs/license.jar')
compile files('src/main/libs/knox.jar')


compile 'com.github.arimorty:floatingsearchview:2.0.3'
//noinspection GradleDependency
compile 'com.google.maps.android:android-maps-utils:0.4+'
//noinspection GradleDependency
compile 'com.akexorcist:googledirectionlibrary:1.0.4'
compile project(':slideDateTimePicker-release')
compile 'me.biubiubiu.justifytext:library:1.1'
//noinspection GradleDependency
compile 'com.android.support:multidex:1.0.1'


compile project(':AppsPanelSDK')
// compile 'com.appspanel.android:sdk:4.4.2'
}
}

configurations {
compile.exclude group: 'stax'
compile.exclude group: 'xpp3'
}

dependencies {
compile project(':SmartAdServer-Android-SDK-6.7.1')
// compile project(':AppsPanelSDK')

}

我不知道为什么会这样,我被困住了。

我需要帮助!!

谢谢。

最佳答案

最后,我或多或少地解决了我的问题:

我替换

 compile 'com.google.android.gms:play-services-location:11.6.0'
compile 'com.google.android.gms:play-services-maps:11.6.0'

compile 'com.google.android.gms:play-services-location:11.0.4'
compile 'com.google.android.gms:play-services-maps:11.0.4'

关于java - ZipException : transform duplicate entry com/google/android/gms/internal/zzez. 类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51082172/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com