Gradle Problem: FAILURE: Build failed with an exception

Hi All.

Can you please help me?
Android studio problem for generated signed apk:

What went wrong:
Execution failed for task ‘:app:transformClassesWithJarMergingForRelease’.

com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/internal/zzzq.class

thank you the help!!

Something can you please help me?

Found this post on StackOverflow which seems to indicate you might have included two different versions of gms in your app?

Thank you the answer.

this gradle modul app:

"dependencies {
compile fileTree(include: [’*.jar’], dir: ‘libs’)
compile 'com.android.support:support-v4:24.2.1’
compile 'com.android.support:appcompat-v7:24.2.1’
compile 'com.android.support:design:24.2.1’
compile 'com.android.support:cardview-v7:24.2.1’
compile files(‘libs/acra-4.5.0.jar’)
compile files(‘libs/ormlite-android-4.43.jar’)
compile 'com.android.support:multidex:1.0.1’
compile files(‘libs/ormlite-core-4.43.jar’)
compile 'com.google.firebase:firebase-ads:11.6.2’
compile 'com.loopj.android:android-async-http:1.4.9’
compile 'com.sothree.slidinguppanel:library:3.3.1’
compile 'com.wang.avi:library:2.1.3’
compile 'com.github.bumptech.glide:glide:3.7.0’
compile 'com.google.code.gson:gson:2.6.2’
compile 'com.google.firebase:firebase-messaging:11.6.2’
compile 'com.google.firebase:firebase-core:11.6.2’
compile 'jp.wasabeef:glide-transformations:2.0.1’
compile ‘com.onesignal:OneSignal:3.5.8’
// If you want to use the GPU Filters
compile ‘jp.co.cyberagent.android.gpuimage:gpuimage-library:1.3.0’
}

apply plugin: ‘com.google.gms.google-services’"

Blockquote

and this project gradle:

" dependencies {
classpath 'com.android.tools.build:gradle:3.0.1’
classpath ‘com.google.gms:google-services:3.0.0’"

so I try rewrite gradle and services version?
Sorry the silly question

Not sure :thinking:

You have a dependency on com.google.gms:google-services:3.0.0 in your “project gradle”

And you have the plugin applied:

apply plugin: ‘com.google.gms.google-services’"

I suspect you are pulling a different version of the plugin to the dependency (the version of the plugin should be in a classpath dependency as documented here)