Skip to content

Desktop Installation fails to launch JVM for Firebase.initialize #834

Description

@mylockerbiz

my code works in the IDE but fails in the installation
val context = Application() // must be non-null
val firebaseApp = Firebase.initialize(
context = context,
options = options
)

in the installed exe, this fails on the context. I added try/catch code to try Application() and null as the context.
the debug trace shows this
2026-06-28 at 09:08:39.273477900 OWJ_Locker starts App()
2026-06-28 at 09:08:40.861083600 OWJ_Locker main onApplicationStart before
2026-06-28 at 09:08:41.011296700 OWJ_Locker main onApplicationStart after
2026-06-28 at 09:08:41.020287800 OWJ_Locker starts - initialization completed
2026-06-28 at 09:08:41.052422300 Firebase init - Step 1: Starting
2026-06-28 at 09:08:41.059725400 Firebase init - Step 2: Platform initialized
2026-06-28 at 09:08:41.065322300 Firebase init - Step 3: Options created: owjpwd-554f1
2026-06-28 at 09:08:41.071462600 Firebase init - Step 4: Calling Firebase.initialize...
2026-06-28 at 09:08:41.078349800 Firebase init - Step 5: - starting with Application()
2026-06-28 at 09:08:47.129975100 owjLoginButton Sign in with the kmauthclicked start
2026-06-28 at 09:08:47.140974400 owjLoginButton start signin loginClicked clicked end
2026-06-28 at 09:08:47.153493600 start signin loginClicked
2026-06-28 at 09:08:52.393439400 owjLoginButton result: Success(KMAuthUser())
2026-06-28 at 09:08:52.407440700 owjLoginButton result Exception during sign in: FirebaseApp with name [DEFAULT] doesn't exist.

I suspect that the msi jlink process is removing critical packages

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions