Я получаю эту ошибку при попытке собрать apk:
Ошибка: не удалось выполнить задачу ': app: transformClassesWithJarMergingForDebug'.
com.android.build.api.t`ransform.TransformException: java.util.zip.ZipException: повторяющаяся запись: com / google / android / gms / internal / measure / zzxd.class
Вот мой код приложения сборки
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
buildToolsVersion "28.0.0-rc1"
defaultConfig {
applicationId "com.appname"
minSdkVersion 16
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
dexOptions {
javaMaxHeapSize "4g"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
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'
})
//noinspection GradleCompatible
compile 'com.android.support:appcompat-v7:27.1.1'
compile 'com.android.support.constraint:constraint-layout:1.1.0'
compile 'com.mikhaellopez:circularimageview:3.0.2'
compile 'com.android.support:design:27.1.1'
compile 'com.google.firebase:firebase-core:15.0.0'
compile 'com.google.firebase:firebase-messaging:15.0.0'
compile 'com.google.android.gms:play-services-ads:15.0.0'
compile 'com.google.firebase:firebase-crash:15.0.0'
testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'
Заранее спасибо