Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
thibaud-sanchez opened this issue Apr 7, 2020 · 1 comment
Closed

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

thibaud-sanchez opened this issue Apr 7, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@thibaud-sanchez
Copy link
Contributor

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

@fullstackduck fullstackduck added the bug Something isn't working label Apr 7, 2020
fullstackduck added a commit that referenced this issue Apr 7, 2020
@fullstackduck
Copy link
Member

Thanks for reporting @thibaud-sanchez

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants