Skip to content

v2.0.0 doesn't work with androix appcompat #43

@thibaud-sanchez

Description

@thibaud-sanchez

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 :

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

replace with :
implementation 'com.google.android.gms:play-services-auth:18.+'

Source : https://developers.google.com/android/guides/setup

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions