Android Question Error Publishing in App in Google Play - java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process

virpalacios

Active Member
Licensed User
Longtime User
Hi, I tried to publish for revision in the App Store My App, it uses B4X Pages and Firebase Auth, it worked fine in Android 8, 9 and Android 10 devices, however I received this message from google testing
java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process app.miapp.go. Make sure to call FirebaseApp.initializeApp(Context) first.

I got this message when Google tested My App in a Samsung S3 with Android 4.3 (SDK 18) Samsung S

I am not really sure if I need to modify my manifest
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="29"/> in order to change minSdkVersion="19" in order to skip android 4.3 devices in google test.

Thanks for Any Comments in advance,

Best Regards

Initialization in MainPage:
Sub Process_Globals
    Public ActionBarHomeClicked As Boolean
    Public auth As FirebaseAuth
    Public facebook As FacebookSdk
End Sub

Sub Globals
    Dim xui As XUI
    Dim Dialog As B4XDialog
    Dim Base As B4XView
End Sub

Sub Activity_Create(FirstTime As Boolean)
    Dim pm As B4XPagesManager
    
    Estructuras.usuario_registrado.Initialize
    
    pm.Initialize(Activity)
    
    Estructuras.bl_usuario_registrado = False
    
    
    If FirstTime Then
        Base = Activity
        Dialog.Initialize (Base)
        auth.Initialize("auth")
        facebook.Initialize
    End If
    
    If auth.CurrentUser.IsInitialized Then Auth_SignedIn(auth.CurrentUser)
End Sub
 
Top