com.android.build.api.transform.TransformException:java.util.zip.ZipException:重复条目:com / google / android / gms / internal / zzel.class [英] com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/internal/zzel.class
问题描述
错误:任务
'的执行失败:这是我的gradle文件。 crushmatic:transformClassesWithJarMergingForDebug'。
com.android.build.api.transform.TransformException:java.util.zip.ZipException:重复条目:
com / google /android/gms/internal/zzel.class
android {
compileSdkVersion 23
buildToolsVersion23.0.1
packagingOptions {
排除'META-INF / LICENSE.txt'
排除'META-INF / NOTICE.txt'
lintOptions {
checkReleaseBuilds false
//或者,如果您愿意,您可以继续检查发布版本中的错误,
//但继续即使发现错误也可以构建:
abortOnError false
}
}
dexOptions {
javaMaxHeapSize4g
}
defaultConfig {
applicationIdcom.crushmatic.pro
minSdkVersion 14
targetSdkVersion 23
multiDexEnabled true
}
android {
useLibrary'org.apache.http.legacy'
}
存储库{
maven {
urlhttps:/ /mint.splunk.com/gradle/
}
buildTypes {
版本{
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.txt'
}
}
}
我的依赖关系:
依赖关系{
编译'com.android.support:multidex:1.0.0'
编译fileTree(dir:'libs',include:['* .jar'])
编译项目(':facebookSDK')
编译项目(':rangeBar')
编译pro ject(':seekArc_library')
编译项目(':volley')
编译项目(':zoomimage')
编译文件('libs / android-query.0.25.10.jar ')
编译文件('libs / asmack-android-8.jar')
编译文件('libs / commons-codec-1.4.jar')
编译文件('libs /事件总线-2.1.0-beta-1.jar')
编译文件('libs / httpmime-4.1.3.jar')
编译'com.github.bumptech.glide:glide:3.5。 1'
编译文件('libs / PayPalAndroidSDK-2.8.5.jar');
编译文件('libs / picasso-2.1.1.jar')
编译文件('libs / sinch-android-rtc-3.9.8.jar')
编译'joda-time:joda-time:2.1'
编译'com.google.code.gson:gson:2.2.2'
编译'com.google。 android.gms:play-services:7.3.0'
compile'com.android.support:appcompat-v7:23.0.1'
compile'com.android.support:recyclerview-v7:23.0。 +'
编译'com.squareup.okhttp3:okhttp:3.4.1'
compile'com.pkmmte.view:circularimageview:1.1'
compile'com.joooonho: selectableroundedimageview:1.0.1'
compile'com.splunk.mint:mint:4.3.0'
编译文件('libs / gcm.jar')
}
code>
任何人都可以帮我解决这个问题
1
./ gradlew:app:dependencie s
2
./ gradlew clean(Android --->清理项目)
3
./ gradlew clean assembleDebug | ./gradlew clean:assembleDebug
由于您编写的这些东西正在清理和重建项目。特别是第一个,你删除了项目中的所有重复和错误。
让我知道这是否可行!我修好了我的项目。
This is my gradle file.. I'm getting this issue
Error:Execution failed for task ':crushmatic:transformClassesWithJarMergingForDebug'.
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/internal/zzel.class
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
lintOptions {
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false
}
}
dexOptions {
javaMaxHeapSize "4g"
}
defaultConfig {
applicationId "com.crushmatic.pro"
minSdkVersion 14
targetSdkVersion 23
multiDexEnabled true
}
android {
useLibrary 'org.apache.http.legacy'
}
repositories {
maven {
url "https://mint.splunk.com/gradle/"
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
My Dependencies:
dependencies {
compile 'com.android.support:multidex:1.0.0'
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':facebookSDK')
compile project(':rangeBar')
compile project(':seekArc_library')
compile project(':volley')
compile project(':zoomimage')
compile files('libs/android-query.0.25.10.jar')
compile files('libs/asmack-android-8.jar')
compile files('libs/commons-codec-1.4.jar')
compile files('libs/eventbus-2.1.0-beta-1.jar')
compile files('libs/httpmime-4.1.3.jar')
compile 'com.github.bumptech.glide:glide:3.5.1'
compile files('libs/PayPalAndroidSDK-2.8.5.jar');
compile files('libs/picasso-2.1.1.jar')
compile files('libs/sinch-android-rtc-3.9.8.jar')
compile 'joda-time:joda-time:2.1'
compile 'com.google.code.gson:gson:2.2.2'
compile 'com.google.android.gms:play-services:7.3.0'
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.android.support:recyclerview-v7:23.0.+'
compile 'com.squareup.okhttp3:okhttp:3.4.1'
compile 'com.pkmmte.view:circularimageview:1.1'
compile 'com.joooonho:selectableroundedimageview:1.0.1'
compile 'com.splunk.mint:mint:4.3.0'
compile files('libs/gcm.jar')
}
Could anyone help me to fix this issue
You can use this command at the Android Studio Terminal:
1
./gradlew :app:dependencies
2
./gradlew clean (Android ---> Clean the Project)
3
./gradlew clean assembleDebug | ./gradlew clean:assembleDebug
With this things that you wrote you are cleaning and rebuilding the project. Specifically with the first one you are deleting everything duplicate and wrong in your project.
Let me know if this works! I fixed my project.
这篇关于com.android.build.api.transform.TransformException:java.util.zip.ZipException:重复条目:com / google / android / gms / internal / zzel.class的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!