我目前正在为一个项目进行编码,需要一些帮助。如标题中所述,尝试在模拟器上运行应用程序时出现错误:
任务':app:transformClassesWithJarMergingForDebug的执行失败 com.android.build.api.transform.TransformException: java.util.zip.ZipException:重复条目:com / google / firebase / appindexing / Action $ Builder.class 我希望有人知道此问题的解决方法,谢谢即将提出的建议。
这是我的礼物,以防您需要:
>apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion '23.0.2'
defaultConfig {
applicationId "app.devis.de.app"
minSdkVersion 14
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
configurations {
all*.exclude group: 'com.android.support', module: 'support-v7'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:25.1.0'
compile 'com.android.support:design:24.2.0'
compile 'com.google.android.gms:play-services:11.0.0'
testCompile 'junit:junit:4.12'
compile 'com.android.support:multidex:1.0.0'
compile 'com.google.android.gms:play-services-appindexing:9.8.0'
}