ich einen Fehler bekam während unterzeichnet apk in Android Studio ErzeugungFehler mit gcm während unterzeichnet Erzeugen apk android
Error:Execution failed for task ':AppName:transformClassesWithJarMergingForRelease'.
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/common/internal/zzv$zza$zza.class
Gradle ....
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "myApp"
minSdkVersion 14
targetSdkVersion 23
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
dexOptions {
javaMaxHeapSize "2g"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
}
dependencies {
compile 'org.altbeacon:android-beacon-library:2.1.4'
compile project(':qRCodeReaderViewlib')
compile project(':viewpagerindicator')
compile 'com.android.support:support-v4:23.1.1'
compile 'com.google.android.gms:play-services-maps:9.0.0'
compile 'com.android.support:appcompat-v7:23.1.1'
compile files('libs/android-query-full.0.26.7.jar')
//compile files('libs/gcm.jar')
compile files('libs/mint-4.4.0.jar')
compile 'com.squareup.okhttp3:okhttp:3.2.0'
compile 'com.android.support:multidex:1.0.1'
compile 'com.google.firebase:firebase-messaging:9.4.0'
}
// Add to the bottom of the file
apply plugin: 'com.google.gms.google-services'
Jede Hilfe? Vielen Dank im Voraus ..
fügen Sie diese Zeile sagen filetree dependency..compile (dir: 'libs', schließen ein: [ '* .jar']) .. und fügen Sie das Glas Dateien zu Abhängigkeit .. und synchronisieren Sie das Projekt –
Es kann sein, weil Sie verschiedene Versionen von Play-Dienste verwenden, werfen Sie einen Blick auf diese http://StackOverflow.com/A/38201741/3111083 –