79561673

Date: 2025-04-08 09:39:59
Score: 0.5
Natty:
Report link

When you are use Room Database with Android Jetpack Compose in that preview time this error come so we can create schemas folder in app module it will fix.

agp = "8.9.1"
kotlin = "2.1.20"

#Room
room = "2.7.0-rc03"
sqlite = "2.5.0-rc03"

#Room
room-runtime = { module = "androidx.room:room-runtime", version.ref = "room" }
room-compiler = { module = "androidx.room:room-compiler", version.ref = "room" }
sqlite-bundled = { module = "androidx.sqlite:sqlite-bundled", version.ref = "sqlite" }


//Room
    implementation(libs.room.runtime)
    implementation(libs.sqlite.bundled)
    ksp(libs.room.compiler)

room {
    schemaDirectory("$projectDir/schemas")
}
schemas
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When you are use
  • Low reputation (1):
Posted by: Tech Matrix