The title says it all, I am trying to integrate firebase-ads into my application, which brought so many problems with it, some of which I managed to resolve. The problem I am facing now is an error that looks like this:
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/internal/zzqq$zza.class
This Error occurs only when Firebase is added.
I have been searching the internet for quite a while now, but everything that I found so far doesn't seem to help.
My Module:app
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion '25.0.0'
defaultConfig {
applicationId "myID"
minSdkVersion 16
targetSdkVersion 25
multiDexEnabled true
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.facebook.android:facebook-android-sdk:4.8.0'
compile 'com.android.support:appcompat-v7:25.0.1'
compile 'com.android.support:design:25.0.1'
compile 'com.amirarcane.recent-images:recentimages:1.0.0'
compile 'com.davemorrissey.labs:subsampling-scale-image-view:3.4.1'
compile 'com.android.support:cardview-v7:25.0.1'
compile 'com.github.chrisbanes:PhotoView:1.3.0'
compile "com.daimajia.swipelayout:library:1.2.0@aar"
compile "com.andkulikov:transitionseverywhere:1.7.0"
compile 'com.google.firebase:firebase-ads:9.2.1'
}
apply plugin: 'com.google.gms.google-services'
Thank you in advance!