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

com.firebaseui:firebase-ui-auth needs an upgrade #294

Open
amazingvoice opened this issue Mar 19, 2024 · 3 comments
Open

com.firebaseui:firebase-ui-auth needs an upgrade #294

amazingvoice opened this issue Mar 19, 2024 · 3 comments

Comments

@amazingvoice
Copy link

amazingvoice commented Mar 19, 2024

Removing Credentials API in play-services-auth 21.0.0 breaks the code. It seems the newest com.firebaseui:firebase-ui-auth version 8.0.2 wasn't adjust for the change.

The crash stacktrace is as follows:

FATAL EXCEPTION: main
Process: com.google.firebase.codelab.friendlychat, PID: 16298
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:8305)
at android.app.Activity.performCreate(Activity.java:8284)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1417)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3626)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3782)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101)
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:2307)
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:7872)
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:936)
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.google.firebase.codelab.friendlychat/code_cache/.overlay/base.apk/classes4.dex", zip file "/data/app/~~L54qakZHHuiRLHkqjgYStg==/com.google.firebase.codelab.friendlychat-3tZsrpx2dhiiLQdJwdAmbw==/base.apk"],nativeLibraryDirectories=[/data/app/~~L54qakZHHuiRLHkqjgYStg==/com.google.firebase.codelab.friendlychat-3tZsrpx2dhiiLQdJwdAmbw==/lib/x86_64, /system/lib64, /system_ext/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
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:8305) 
at android.app.Activity.performCreate(Activity.java:8284) 
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1417) 
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3626) 
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3782) 
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101) 
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:2307) 
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:7872) 
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:936) 

@amazingvoice amazingvoice changed the title Removing Credentials API breaks the code, com.firebaseui:firebase-ui-auth needs an upgrade com.firebaseui:firebase-ui-auth needs an upgrade Mar 19, 2024
@Anas010303
Copy link

In \build-android-start\app\build.gradle.kts, downgrade to 20.7.0:

implementation("com.google.android.gms:play-services-auth:20.7.0")

@marcardar
Copy link

2 months on and still no update :(

@inKevinA
Copy link

Up ?

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

4 participants