Android Question Firebase Auth can't initialize

tsteward

Well-Known Member
Licensed User
Longtime User
I have FBase crashlytics and push messages working but I cannot get login with Google using FBase auth to initialise
I get the attached error below
On searching this in the forum the solution is to update kotlin-stdlib-1.7.21. I can find and download this jar file but where do I put it?

 

aeric

Expert
Licensed User
Longtime User
So far the only reference I can find to kotlin-stdlib1.6.10 is in OkHttp which I don't use. Unless another library requests that one
It is used by OkHttpUtils2.

edit:
That's it!
I try adding OkHttpUtils2 library in the project. I got the error.

I replace the dependsOn value for OkHttp.xml with
B4X:
<dependsOn>kotlin-stdlib-1.7.21</dependsOn>
Refresh the Libraries Manager with rightclick and it compiles.

Perhaps we should make a wish to Erel to update the OkHttp library.
 

Attachments

  • OkHttp.xml
    15.1 KB · Views: 39
Last edited:
Upvote 0

tsteward

Well-Known Member
Licensed User
Longtime User
So I changed OkHTTP to use 1.7.21 and no longet get the error caused by two Kotlin references Yay
but auth.initialize still creates error unfortnatly

 
Upvote 0

aeric

Expert
Licensed User
Longtime User
I check my project, I initialized it in Starter service.

Starter.bas:
Sub Process_Globals
    Public auth As FirebaseAuth
End Sub

Sub Service_Create
    auth.Initialize("auth")
    'facebook.Initialize
End Sub
 
Upvote 0

tsteward

Well-Known Member
Licensed User
Longtime User
Same problem. I'm wondering if there is a problem with firebase setup but surely it has not even connected at that point? Has it?
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
Can you share your Manifest Editor?

Do you have something like this?
B4X:
CreateResourceFromFile(Macro, Themes.LightTheme)
'End of default text.
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseAuth.FirebaseAuth)
CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications)
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…