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'

In my case problem is same.I followed below steps:

1.build.gradle(gradle)

change :

  classpath 'com.google.gms:google-services:3.2.0'

To :

  classpath 'com.google.gms:google-services:3.2.1'

2.build.gradle(module)

    implementation 'com.google.firebase:firebase-core:15.0.2'
    implementation 'com.google.firebase:firebase-messaging:15.0.2'
    implementation 'com.google.android.gms:play-services-maps:15.0.1'

for google location and places :

  implementation 'com.google.android.gms:play-services-location:15.0.1'
  implementation 'com.google.android.gms:play-services-places:15.0.1'

The problem is caused because Firebase started versioning the libraries separately. Updating everything to latest version solves the issue.

Update the google play gradle plugin version to latest version, currently 4.0.1.

In project level build.gradle file:

classpath 'com.google.gms:google-services:4.0.1'

Information about latest version of google gradle plugin is available at:

https://bintray.com/android/android-tools/com.google.gms.google-services/

And use the latest versions of individual libraries in app level build.gradle file:

implementation 'com.google.android.gms:play-services-vision:15.0.2'
implementation 'com.google.android.gms:play-services-ads:15.0.1'
implementation 'com.google.firebase:firebase-messaging:15.0.2'

Information about latest versions of individual libraries available at:

https://firebase.google.com/support/release-notes/android and https://developers.google.com/android/guides/setup