How to use Firebase in AndroidMain

Hi there, when I add implementation (“com.google.firebase:firebase-database:19.0.0”) in AndroidMain, Gradle Sync works, but I cannot import FirebaseDatabase into my classes. When adding implementation (“androidx.room:room-runtime:2.1.0”) it is working properly.

Can anyone explain or help?

Thx a lot, Nikolaus

Hi. I found an MPP project that looks pretty close to what you want, hope it helps as a reference: Kotlin-Multiplatform-Firebase/build.gradle at master · RubyLichtenstein/Kotlin-Multiplatform-Firebase · GitHub