Hi everyone, sorry if the question has already bee...
# multiplatform
a
Hi everyone, sorry if the question has already been answered but I can't seem to get Room working as an Android dependency in my kmm library. I've added the below implementation :
Copy code
val androidMain by getting {
    dependencies {
                implementation("androidx.room:room-runtime:$roomVersion")
                implementation("androidx.room:room-ktx:$roomVersion")
                implementation("androidx.room:room-common:$roomVersion")
//                kapt("androidx.room:room-compiler:$roomVersion")
...
And also under the plugins block
Copy code
plugins {
  id("kotlin-kapt")
}
But I'm getting the error : "cannot find implementation for XDatabase" when the app is running. I have no issues compiling. I don't really understand what is missing or misconfigured. Any help would be great thanks 🙂 PS : I'm migrating an android library to kmm and haven't moved every dependency to kmm ones like SQLDelight...
j
I was also trying to do this and was pretty unsuccessful 🙃. I wasn't able to get an annotation processor setup with RoomDB specifically in the shared module, no matter what syntax I tried with kapt, ksp, whatever. I'm currently just in the process of fully moving over to SQLDelight since I'd have to find an iOS database option at some point anyways