构建Android项目时出现以下错误。
非常感谢任何帮助。
错误:任务执行失败':App:transformClassesWithJarMergingForDebug'。 com.android.build.api.transform.TransformException:java.util.zip.ZipException:重复条目:android / support / v4 / print / PrintHelper $ 1.class
的build.gradle
apply plugin: 'android'
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
compile project(':Modules:InstaRydeDataDroid')
compile project(':Modules:InstaRydeFacebookSDK')
compile project(':Modules:InstaRydeSmoothProgressBar')
//compile project(':Modules:InstaRyde_google-play-services_lib')
compile project(':googlemapssdkm4b_lib')
}
repositories {
mavenCentral()
}
dependencies {
compile 'io.card:android-sdk:5.1.1'
compile 'com.braintreepayments.api:braintree:1.+'
compile 'com.caverock:androidsvg:1.2.2-beta-1'
compile 'com.pubnub:pubnub:3.7.5'
compile "com.mixpanel.android:mixpanel-android:4.6.2"
compile 'com.android.support:multidex:1.0.0'
compile ("com.google.android.gms:play-services-location:7.5.0"){
exclude module: 'support-v4'
}
compile ("com.google.android.gms:play-services-plus:7.5.0"){
exclude module: 'support-v4'
}
compile ("com.google.android.gms:play-services-gcm:7.5.0"){
exclude module: 'support-v4'
}
}
android {
compileSdkVersion 19
buildToolsVersion "21.1.1"
dexOptions {
jumboMode = true
incremental true
javaMaxHeapSize "4g"
}
defaultConfig {
multiDexEnabled = true
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
// Move the tests to tests/java, tests/res, etc...
instrumentTest.setRoot('tests')
// Move the build types to build-types/<type>
// For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
// This moves them out of them default location under src/<type>/... which would
// conflict with src/ being used by the main source set.
// Adding new build types or product flavors should be accompanied
// by a similar customization.
debug.setRoot('build-types/debug')
release.setRoot('build-types/release')
}
}