Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/Google/Android/gms/common/API/API$zzf; [duplicate]

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/api/Api$zzf;

I am getting above error at run time.

I set multiDexEnabled true, but I'm still getting the error.

I am not able to find reason behind it. There is no correct solution for this question.

like image 456
Amar Giram Avatar asked May 29 '18 09:05

Amar Giram


2 Answers

I have also faced this issue while adding firebase auth in my project and issue was I have not added google auth as dependency in build.gradle. Adding below dependencies solved the problem

implementation 'com.google.android.gms:play-services-auth:16.0.0'
implementation 'com.google.firebase:firebase-auth:16.0.3'
like image 59
Ankit Avatar answered Sep 22 '22 12:09

Ankit


I had this error due to dependency conflicts in Firebase. In particular, dependencies of the module Auth. In this case, updating the dependencies should solve the problem.

like image 41
Pedro Henrique Avatar answered Sep 19 '22 12:09

Pedro Henrique