-
Notifications
You must be signed in to change notification settings - Fork 183
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
The version of google auth dependency you are using is using support v4 fragment, and if I use it with Capacitor 2 and androidx, it crash.
Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/app/FragmentActivity;
04-07 15:17:02.335 1690 1786 E AndroidRuntime: at com.google.android.gms.auth.api.signin.internal.zzh.zzc(Unknown Source:1)
04-07 15:17:02.335 1690 1786 E AndroidRuntime: at com.google.android.gms.auth.api.signin.GoogleSignInClient.getSignInIntent(Unknown Source:20)
04-07 15:17:02.335 1690 1786 E AndroidRuntime: at com.codetrixstudio.capacitor.GoogleAuth.GoogleAuth.signIn(GoogleAuth.java:54)
04-07 15:17:02.335 1690 1786 E AndroidRuntime: ... 7 more
I think you should use the latest version, it works fine on my project now :
CapacitorGoogleAuth/android/build.gradle
Line 46 in d6e73f9
| implementation 'com.google.android.gms:play-services-auth:16.+' |
replace with :
implementation 'com.google.android.gms:play-services-auth:18.+'
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working