Google Pixel 9 Pro XL & Google Pixel 7 Pro and Emulator
The error stack-trace:
java.lang.IllegalStateException: Default FirebaseApp is not initialized in this
process io.getstream.server.driven.compose. Make sure to call FirebaseApp.initializeApp(Context) first.
at com.google.firebase.FirebaseApp.getInstance(FirebaseApp.java:179)
at com.google.firebase.database.FirebaseDatabase.getInstance(FirebaseDatabase.java:71)
at com.google.firebase.database.DatabaseKt.database(Database.kt:36)
at io.getstream.server.driven.core.network.di.NetworkModule.provideDatabaseReference(NetworkModule.kt:36)
The following code does not resolve the issue:
@HiltAndroidApp
class ServerDrivenApp : Application() {
override fun onCreate() {
super.onCreate()
FirebaseApp.initializeApp(this)
}
}
Getting error in app start:
Gradle version:
8.7
Android Studio:
Ladybug | 2024.2.1 Canary 9
Devices:
Google Pixel 9 Pro XL & Google Pixel 7 Pro and Emulator
The error stack-trace:
The following code does not resolve the issue: