Compilation failed to complete:Program type already present: com.google.android.gms.internal.measurement.zzabn
Firebase did an update to the SDK:
Firebase Android SDKs now have independent version numbers, allowing for more frequent, flexible updates.
Update all your Firebase dependencies to use the latest version:
Firebase Core com.google.firebase:firebase-core:15.0.2
Ads com.google.firebase:firebase-ads:15.0.0
Analytics com.google.firebase:firebase-analytics:15.0.2
App Indexing com.google.firebase:firebase-appindexing:15.0.0
Authentication com.google.firebase:firebase-auth:15.1.0
Cloud Firestore com.google.firebase:firebase-firestore:16.0.0
Cloud Functions com.google.firebase:firebase-functions:15.0.0
Cloud Messaging com.google.firebase:firebase-messaging:15.0.2
Cloud Storage com.google.firebase:firebase-storage:15.0.2
Crash Reporting com.google.firebase:firebase-crash:15.0.2
Crashlytics com.crashlytics.sdk.android:crashlytics:2.9.1
Invites com.google.firebase:firebase-invites:15.0.1
Performance Monitoring com.google.firebase:firebase-perf:15.1.0
Realtime Database com.google.firebase:firebase-database:15.0.0
Remote Config com.google.firebase:firebase-config:15.0.2
More information is here:
https://firebase.google.com/support/release-notes/android
Please also update google-services
plugin:
classpath 'com.google.gms:google-services:3.3.1'
You can find the latest google-services clicking HERE
Also check this link to understand the changes and follow the steps listed in the article:
Announcing the new SDK Versioning
EDITED ON: 27 NOVEMBER 2019
As of today, the latest version for google-services
Plugin is 4.3.3
. So, your dependency would look like
classpath 'com.google.gms:google-services:4.3.3'
Android Studio- Program type already present: com.google.android.gms.internal.measurement.zzwp
Resolved this issue after updating a firebase dependencies
to latest one for example com.google.firebase:firebase-core:15.0.0
to com.google.firebase:firebase-core:15.0.2
Get Latest List from here
All other changes made in below list
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:customtabs:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.github.PhilJay:MPAndroidChart:v3.0.3'
implementation 'com.facebook.android:audience-network-sdk:4.28.0'
implementation 'com.facebook.android:facebook-login:4.32.0'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.readystatesoftware.sqliteasset:sqliteassethelper:2.0.1'
implementation 'com.android.support:support-v4:27.1.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.google.firebase:firebase-core:15.0.2'
implementation 'com.google.firebase:firebase-database:15.0.0'
implementation 'com.google.firebase:firebase-crash:15.0.2'
implementation 'com.google.firebase:firebase-auth:15.0.0'
implementation 'com.google.firebase:firebase-storage:15.0.2'
implementation 'com.firebaseui:firebase-ui-database:3.3.1'
implementation 'com.google.android.gms:play-services-auth:15.0.0'
implementation 'com.google.android.gms:play-services-plus:15.0.0'
implementation 'com.google.android.gms:play-services-location:15.0.0'
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
implementation 'com.stepstone.apprating:app-rating:2.2.0'
implementation 'com.android.support:design:27.1.1'
implementation 'com.github.lguipeng:BubbleView:1.0.1'
implementation 'uk.co.chrisjenx:calligraphy:2.3.0'
implementation 'com.miguelcatalan:materialsearchview:1.4.0'
implementation 'com.github.MdFarhanRaja:SearchableSpinner:1.9'
implementation 'com.github.sillebille:dynamic-calendar:1.0.1'
implementation 'com.google.api-client:google-api-client:1.22.0'
implementation 'com.google.api-client:google-api-client-android:1.22.0'
implementation 'com.google.apis:google-api-services-people:v1-rev4-1.22.0'
}
2) In top level build.gradle file update from
classpath 'com.google.gms:google-services:3.1.1
to classpath 'com.google.gms:google-services:3.2.1
Program type already present: com.google.android.gms.common.util.VisibleForTesting -':app:transformDexArchiveWithExternalLibsDexMergerForDebug'
Firebase Android SDKs now have independent version numbers, allowing for more frequent, flexible updates.
Update the google play gradle plugin version to latest version, currently 3.3.0.
classpath 'com.google.gms:google-services:3.3.0'
Error: Program type already present: android.arch.lifecycle.LiveData - Compilation error
Change
implementation 'com.firebaseui:firebase-ui:3.0.0'
To
implementation 'com.firebaseui:firebase-ui:3.3.1'
implementation 'android.arch.lifecycle:extensions:1.1.1
Multiple dex files define Lcom/google/android/gms/internal/measurement/zzabn
Please update the google-service
plugin to:
classpath 'com.google.gms:google-services:3.3.0'
to be able to use the latest version of Firebase and to avoid the errors.
Read the following for more information:
https://android-developers.googleblog.com/2018/05/announcing-new-sdk-versioning.html
Compilation failed to complete:Program type already present: com.google.android.gms.internal.measurement.zzabn
Related Topics
Where's My Invalid Character (Ora-00911)
Runtime's Exec() Method Is Not Redirecting the Output
Convert Rgb Values to Color Name
How to Add Two Java.Lang.Numbers
Generic Type Inference Not Working with Method Chaining
How to Read Jsch Command Output
What Is the Syntax of the Enhanced for Loop in Java
Painting the Slider Icon of Jslider
Integer Wrapper Class and == Operator - Where Is Behavior Specified
The Issue of * in Command Line Argument
How to Derive Module Descriptor: Provider {Class X} Not in Module
Java - Transparent Jscrollpane
How to Solve the Error "Not a Valid Xpath Expression"
Key Bindings VS. Key Listeners in Java
Why Double Width = 50/110000; the Output Is 0.000000000000000