Error: AGPBI: program type is already present: com.google.android.gms.auth.api.signin.internal.zzg

In my Adrdoi application, where I use Google Login and Firebase Cloud Messaging, I get the following error message:

AGPBI: {"kind":"error","text":"Program type already present: com.google.android.gms.auth.api.signin.internal.zzg","sources":[{}]} 

Does this mean that google auth lib has already been used somewhere else? Which of these?

+5
source share
4 answers

FWIW I had a similar error with another library that I use in my application, and the workaround for me was setting android.enableD8=false in gradle.properties.

Or upgrade from AGP 3.0.0-beta3 to beta6.

+2
source

Revert to firebase version 11.2.2 .

For instance:

From:

 'com.google.firebase:firebase-core:11.4.0' 

to

 'com.google.firebase:firebase-core:11.2.2' 

UPDATE

Even 11.6.0 from firebase were released, this problem still exists. I found out about adding

 compile 'com.google.firebase:firebase-core:11.6.0' compile 'com.google.android.gms:play-services-location:11.6.0' 

the problem disappears.

+1
source

I had the same problem.

Modified by Modification

 implementation 'com.google.firebase:firebase-auth:11.0.6' 

to

 implementation 'com.google.firebase:firebase-auth:11.2.2' 

The problem occurred after adding the firebase plugin on Android 3.

Android Plugin version automatically adds

 implementation 'com.google.firebase:firebase-auth:11.0.6' 

but we need to change the version to 11.2.2

Error log

+1
source

Make sure all firebase libraries have the same version

0
source

Source: https://habr.com/ru/post/1271897/


All Articles