Skip to content

On generated MSI file getting error "failed to launch JVM" error" But in emulator every thing is OK. #21

@MrJabborbek

Description

@MrJabborbek

I am initializing Firebase in desktop side like this, if i commented firebsase initializationsnot getting error, so error is in initialization:

import android.app.Application
import androidx.compose.ui.window.Window
import androidx.compose.ui.window.application
import com.google.firebase.FirebasePlatform
import dev.gitlive.firebase.Firebase
import dev.gitlive.firebase.FirebaseOptions
import dev.gitlive.firebase.initialize

fun main() = application {
FirebasePlatform.initializeFirebasePlatform(object : FirebasePlatform() {

    val storage = mutableMapOf<String, String>()
    override fun clear(key: String) {
        storage.remove(key)
    }

    override fun log(msg: String) = println(msg)

    override fun retrieve(key: String) = storage[key]

    override fun store(key: String, value: String) = storage.set(key, value)

})

val options = FirebaseOptions(
    projectId = "some_id",
    applicationId = "app_id_here",
    apiKey = "api_key_here",
)


Firebase.initialize(Application(), options)

Window(
    onCloseRequest = ::exitApplication,
    title = "KotlinProject",
) {
    App()
}

}

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