Код: Выделить всё
libs.versions.tomlКод: Выделить всё
[libraries]
room = { module = "androidx:room", version.ref = "roomVersion" }
androidx-room-compiler = { module = "androidx.room:room-compiler", version.ref = "roomVersion" }
[plugins]
room = { id = "androidx.room", version.ref = "roomVersion" }
Код: Выделить всё
build.gradle.ktsКод: Выделить всё
plugins{
alias(libs.plugins.room)
}
androidMain.dependencies {
implementation(libs.compose.ui.tooling.preview)
implementation(libs.androidx.activity.compose)
implementation(libs.room)
implementation(libs.androidx.room.compiler)
}

Подробнее здесь: https://stackoverflow.com/questions/784 ... i-platform
Мобильная версия