这是我的gradle文件..我遇到了这个问题
错误:任务执行失败 ':crushmatic:transformClassesWithJarMergingForDebug'。
com.android.build.api.transform.TransformException:java.util.zip.ZipException:重复条目: COM /谷歌/机器人/克/内部/ 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'
}
}
}
我的依赖关系:
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')
}
任何人都可以帮我解决这个问题
答案 0 :(得分:1)
您可以在Android Studio终端使用此命令:
<强> 1 强>
./gradlew :app:dependencies
<强> 2 强>
./gradlew clean (Android ---> Clean the Project)
第3 强>
./gradlew clean assembleDebug | ./gradlew clean:assembleDebug
通过这些你写的东西,你正在清理和重建项目。特别是第一个,你删除项目中的所有重复和错误。
让我知道这是否有效!我修好了我的项目。