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

Support play-services-auth library (v21.0.0) #2158

Open
wangerekaharun opened this issue Mar 13, 2024 · 7 comments
Open

Support play-services-auth library (v21.0.0) #2158

wangerekaharun opened this issue Mar 13, 2024 · 7 comments

Comments

@wangerekaharun
Copy link

wangerekaharun commented Mar 13, 2024

Welcome to FirebaseUI and thanks for submitting an issue!

Please take a look at open issues, as well as resolved issues, to see if your issue is either already being addressed, or has been solved by someone else.

If not, please feel free to fill in the following info so we can help faster!

Step 1: Are you in the right place?

  • For issues or feature requests related to the code in this repository file a GitHub issue.
  • For general technical questions, post a question on StackOverflow tagged appropriately.
  • For general Firebase discussion, use the firebase-talk google group
  • For help troubleshooting your application that does not fall under one of the above categories, reach out to the personalized Firebase support channel

Step 2: Describe your environment

  • Android device: Pixel 6 Pro
  • Android OS version: Android 14
  • Google Play Services version: 21.1.0
  • Firebase/Play Services SDK version: 21.1.1
  • FirebaseUI version: 8.0.2

Step 3: Describe the problem:

Steps to reproduce:

  1. Update the play-services-auth version on an app using Firebase UI
  2. Run the app, it crashes due to the breaking changes added on the play-services-auth 21.1.0 version: https://developers.google.com/android/guides/releases#february_15_2024

Observed Results:

  • What happened? This could be a description, logcat output, etc.
    Crashes with this exception:
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/auth/api/credentials/CredentialsOptions$Builder;at com.firebase.ui.auth.util.GoogleApiUtils.getCredentialsClient(GoogleApiUtils.java:29) 

at com.firebase.ui.auth.viewmodel.AuthViewModelBase.onCreate(AuthViewModelBase.java:30)
at com.firebase.ui.auth.viewmodel.ViewModelBase.init(ViewModelBase.java:24)
at com.firebase.ui.auth.KickoffActivity.onCreate(KickoffActivity.java:38)
at android.app.Activity.performCreate(Activity.java:8051)
at android.app.Activity.performCreate(Activity.java:8031)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1329)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3608)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3792)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2210)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7839)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)

Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.auth.api.credentials.CredentialsOptions$Builder" on path: DexPathList[[dex file "/data/data/com.mfhc.firebasetest/code_cache/.overlay/base.apk/classes3.dex", zip file "/data/app/~~crZRGUM9m8NR4vzMFc5fFw==/com.mfhc.firebasetest-oesX28d7C_VTSFzoRDt6Gg==/base.apk"],nativeLibraryDirectories=[/data/app/~~crZRGUM9m8NR4vzMFc5fFw==/com.mfhc.firebasetest-oesX28d7C_VTSFzoRDt6Gg==/lib/x86_64, /system/lib64, /system_ext/lib64]]

dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:218)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)

Expected Results:

  • What did you expect to happen?

Firebae UI Auth Should continue to work as expected with the new play-services-auth version

Relevant Code:

Update to latest play-services-auth version
@tlozovyi
Copy link

I have exactly same problem

@jonsmirl
Copy link

jonsmirl commented Sep 4, 2024

Same problem.

@Pantsoffski
Copy link

Any news? I have exactly same problem...

@corvinav
Copy link

corvinav commented Nov 4, 2024

+1

1 similar comment
@jnstahl
Copy link

jnstahl commented Nov 5, 2024

+1

@jonsmirl
Copy link

jonsmirl commented Dec 5, 2024

Ha, ha. I asked Gemini for alternatives to firebaseUI-auth and it told me to use AWS Amplify.
image

@tlozovyi
Copy link

tlozovyi commented Dec 5, 2024

In the end, I've rewritten app auth flow from the scratch without Firebase UI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants