我正在使用firebase,但无法生成已签名的APK。我已经搜索过类似的问题,但解决方案对我不起作用。
错误:任务执行失败 ':应用程序:transformClassesWithJarMergingForRelease&#39 ;. com.android.build.api.transform.TransformException:java.util.zip.ZipException:重复条目: COM /谷歌/火力/ IID / zzb.class
我的Gradle.build应用文件
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "com.alpkaanaksu.spqrchatroom"
minSdkVersion 16
targetSdkVersion 25
versionCode 1
versionName "1.0"
multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
configurations{
all*.exclude group: 'com.google.firebase.iid', module: 'firebase-iid-10.0.1'
all*.exclude group: 'com.google.firebase.iid', module: 'play-services-tasks-10.0.1'
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.google.firebase:firebase-core:10.0.1'
compile 'com.android.support:multidex:1.0.1'
compile 'com.firebaseui:firebase-ui:2.0.1'
testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'
答案 0 :(得分:3)
wget -O ~/dir/1GB.bin http://www.speed.hetzner.de/1GB.bin
你应该使用
FirebaseUI Version Firebase/Play Services Version
2.0.1 11.0.1
1.2.0 10.2.0
1.1.1 10.0.0 or 10.0.1
1.0.1 10.0.0 or 10.0.1
1.0.0 9.8.0