Use Firebase to Desktop #454
Replies: 5 comments 4 replies
-
you can create a context with
|
Beta Was this translation helpful? Give feedback.
-
I tried this approach below, and I have this bug here when compile to Desktop using Firebase. Inside commonMain, App.kt:
Inside dektopMain:
Error: Exception in thread "main" java.lang.NoClassDefFoundError: com/google/android/gms/common/R$string
FAILURE: Build failed with an exception.
BUILD FAILED in 30s
|
Beta Was this translation helpful? Give feedback.
-
Please read https://github.com/GitLiveApp/firebase-java-sdk/blob/master/README.md#initializing-the-sdk |
Beta Was this translation helpful? Give feedback.
-
For me it worked this way: Inside commonMain, App.kt:
Inside dektopMain: |
Beta Was this translation helpful? Give feedback.
-
But now I have another problem, when I log the user into "FirebaseAuth", and it gives an error in "coroutines". Inside commonMain, App.kt:
Error: |
Beta Was this translation helpful? Give feedback.
-
Hi, in the Readme we can see the lib can be used for all 4 targets, including Desktop.
But it's not possible to initialize Firebase, since the parameter is Android context.
Beta Was this translation helpful? Give feedback.
All reactions