Skip to content Skip to sidebar Skip to footer

Failed Resolution Of: Lcom/google/android/gms/common/api/api$zzf;

I got this error when we run apk file of our application. In build.gradle we set multidex and compile multidex is existed in Gradle file . We changed the version of Firebase versio

Solution 1:

In your build.gradle, upgrade play-services-gcm and play-services-location to 15.0.1:

com.google.android.gms:play-services-gcm:15.0.1com.google.android.gms:play-services-location:15.0.1

Solution 2:

This is happen when we try to authenticate user with some authenticate service like AccountKitFirebaseAuth and those service depends on play-services-auth So, Add

implementation 'com.google.android.gms:play-services-auth:16.0.0'

on your build.gradle dependencies

Solution 3:

I fixed this issue. Please follow below code. Added following to android/build.gradle

allprojects {
    repositories {
    //start here
    configurations.all {
 resolutionStrategy.eachDependency { DependencyResolveDetails details ->
   def requested = details.requested
       if (requested.group == 'com.google.android.gms') {
          details.useVersion '12.0.1'
       }
       if (requested.group == 'com.google.firebase') {
          details.useVersion '12.0.1'
         }
       }
     }
    //end
     jcenter()
       maven {
         url "https://maven.google.com"
       }
     }
 }

Solution 4:

Well, I am using Account Kit from Facebook. After I adding play-services-auth problem is resolved.

implementation 'com.facebook.android:account-kit-sdk:4.39.0'

implementation 'com.google.android.gms:play-services-auth:17.0.0'

Solution 5:

I was using a react native package

react-native-facebook-account-kit

resolved by adding

implementation 'com.google.android.gms:play-services-auth:16.0.1'

Post a Comment for "Failed Resolution Of: Lcom/google/android/gms/common/api/api$zzf;"