Android Question error... FirebaseApp is not initialized

Status
Not open for further replies.

scsjc

Well-Known Member
Licensed User
Longtime User
sometimes i have this error:


B4X:
java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process name.app.com. Make sure to call FirebaseApp.initializeApp(Context) first.
    at com.google.firebase.FirebaseApp.getInstance(com.google.firebase:firebase-common@@19.1.0:182)
    at com.google.firebase.auth.FirebaseAuth.getInstance(com.google.firebase:firebase-auth@@19.0.0:1)
    at anywheresoftware.b4a.objects.FirebaseAuthWrapper.Initialize(FirebaseAuthWrapper.java:54)
    at myworldapp.people.com.main._activity_create(main.java:468)


in B4A code.... (main.java:468) is:

B4X:
auth.Initialize("auth")
 

DonManfred

Expert
Licensed User
Longtime User
Are you expecting to get help with this really spare infos you are providing?

Upload a small project which shows the issue. My guess is that the manifest code is not ok. Or you are using outdated libraries

What B4A Version are you using?
What version of firebaseauth?
Which Version of firebaseAnalytics?
 
Last edited:
Upvote 0

scsjc

Well-Known Member
Licensed User
Longtime User
Are you expecting to get help with this really spare infos you are providing?

Upload a small project which shows the issue. My guess is that the manifest code is not ok. Or you are using outdated libraries

What B4A Version are you using?
What version of firebaseauth?
Which Version of firebaseAnalytics?

Hi DonManfred,
The error occurs very occasionally, and I cannot reproduce what happens.

B4A = V9.50
upload_2019-9-20_12-11-9.png

FirebaseAnalytics is V1.11 (but i dont activate)

upload_2019-9-20_12-11-22.png


any ideas. Thank you so much :)
 
Upvote 0

scsjc

Well-Known Member
Licensed User
Longtime User
so far i can see it look OK.

not really.

Thank you very much, I also see it well, the funny thing is that it works perfectly, in general it does not fail anyone.
It is only some error that I receive from a very punctual user.
I don't think it's anything (but I would have liked to "fine tune" the errors to the maximum)

Thanks ;)
 
Upvote 0

Ahmet KOÇ

Member
Licensed User
Longtime User
I can't see? did you solve the problem? I'm dealing with the same problem.
B4A 9.50
All library files and versions are correct. Even FirebaseAnalytics 1.12

<uses-sdk android: minSdkVersion = "14" android: targetSdkVersion = "28" />
<supports-screens android: largeScreens = "true"
android: normalscreens = "true"
android: smallscreens = "true"
android: anydensity = "true" />)

#if free
CreateResourceFromFile (Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile (Macro, FirebaseAuth.FirebaseAuth)
CreateResourceFromFile (Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile (Macro, FirebaseNotifications.FirebaseNotifications)
CreateResourceFromFile (Macro, FirebaseAnalytics.FirebaseAnalytics)
CreateResourceFromFile (Macro, FirebaseAdMob.FirebaseAds)
#end if

I get the error on the auth.Initialize ("auth") line.

java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process xxxxxxxxxxxx. Make sure to call FirebaseApp.initializeApp (Context) first.

I couldn't figure it out. This application worked through 23 versions. In fact, according to API28 compiled version is available in the market. My SDKs and Extra are fully installed. I don't understand what's changed.
 
Upvote 0

scsjc

Well-Known Member
Licensed User
Longtime User
I can't see? did you solve the problem? I'm dealing with the same problem.
B4A 9.50
All library files and versions are correct. Even FirebaseAnalytics 1.12

<uses-sdk android: minSdkVersion = "14" android: targetSdkVersion = "28" />
<supports-screens android: largeScreens = "true"
android: normalscreens = "true"
android: smallscreens = "true"
android: anydensity = "true" />)

#if free
CreateResourceFromFile (Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile (Macro, FirebaseAuth.FirebaseAuth)
CreateResourceFromFile (Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile (Macro, FirebaseNotifications.FirebaseNotifications)
CreateResourceFromFile (Macro, FirebaseAnalytics.FirebaseAnalytics)
CreateResourceFromFile (Macro, FirebaseAdMob.FirebaseAds)
#end if

I get the error on the auth.Initialize ("auth") line.

java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process xxxxxxxxxxxx. Make sure to call FirebaseApp.initializeApp (Context) first.

I couldn't figure it out. This application worked through 23 versions. In fact, according to API28 compiled version is available in the market. My SDKs and Extra are fully installed. I don't understand what's changed.
not resolve... some times receive this error from any customer
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
I get the error on the auth.Initialize ("auth") line.

java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process xxxxxxxxxxxx. Make sure to call FirebaseApp.initializeApp (Context) first.

start with:
1. Creating a new thread for your issue.
2.. Post the complete errormessage, not just a part of it.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Status
Not open for further replies.
Top