Jetbrains Ttvna
07/31/2023, 4:55 PMJetbrains Ttvna
07/31/2023, 4:55 PMJetbrains Ttvna
07/31/2023, 4:56 PMJetbrains Ttvna
07/31/2023, 4:56 PMJetbrains Ttvna
07/31/2023, 5:00 PMJetbrains Ttvna
07/31/2023, 5:01 PMFrancesc
07/31/2023, 5:02 PMOk, every file is a kotlin file. Even the build gradle ends with .kts. I don't understand why you are reacting with "NOT KOTLIN"would you have the same issue if you were doing this in Java? If yes, then it's not relevant in this forum
Jetbrains Ttvna
07/31/2023, 5:04 PMJetbrains Ttvna
07/31/2023, 5:04 PMMatthew
07/31/2023, 5:07 PMJetbrains Ttvna
07/31/2023, 5:10 PM// To use Kotlin annotation processing tool (kapt)
kapt("androidx.room:room-compiler:$room_version")
// To use Kotlin Symbol Processing (KSP)
ksp("androidx.room:room-compiler:$room_version")
but I got the errors:
"Type mismatch. Required: KaptOptions Found: String"
"Unresolved reference: ksp"Jetbrains Ttvna
07/31/2023, 5:13 PMFrancesc
07/31/2023, 5:15 PMFrancesc
07/31/2023, 5:16 PMJetbrains Ttvna
07/31/2023, 5:16 PMJetbrains Ttvna
07/31/2023, 5:17 PMand to use ksp you need to add the dependency in the main build.gradle fileIsn't that what I did?
Francesc
07/31/2023, 5:17 PMFrancesc
07/31/2023, 5:18 PMcom-google-devtools-ksp-plugin = { id = "com.google.devtools.ksp", version.ref = "com-google-devtools-ksp-plugin-version" }
and then in the main build.gradle file you add this
plugins {
alias(libs.plugins.com.github.ben.manes.versions)
alias(libs.plugins.com.google.devtools.ksp.plugin) <----------
alias(libs.plugins.io.gitlab.arturbosch.detekt.plugin)
}
Francesc
07/31/2023, 5:20 PMrefactor/mvi
) https://github.com/fvilarino/Password-Generator/tree/refactor/mviJetbrains Ttvna
07/31/2023, 5:20 PMFrancesc
07/31/2023, 5:20 PMJetbrains Ttvna
07/31/2023, 5:30 PMif you use a catalog, you need this
Copy codecom-google-devtools-ksp-plugin = { id = "com.google.devtools.ksp", version.ref = "com-google-devtools-ksp-plugin-version" }
Jetbrains Ttvna
07/31/2023, 5:30 PMFrancesc
07/31/2023, 5:32 PMlibs.versions.toml
file, only if you use version catalogsJetbrains Ttvna
07/31/2023, 5:42 PMFrancesc
07/31/2023, 6:20 PMtoml
file and then referenced in the build.gradle.kts
filesJetbrains Ttvna
07/31/2023, 6:21 PMFrancesc
07/31/2023, 6:29 PMgradle
top level folderColton Idle
08/01/2023, 4:00 AMJetbrains Ttvna
08/01/2023, 8:37 AMJetbrains Ttvna
08/01/2023, 5:20 PMJetbrains Ttvna
08/01/2023, 5:21 PMkotlin("kapt") version "1.7.21"
this in dependency section of the modules build.gradle.kts:
implementation("androidx.room:room-runtime:$room_version")
implementation("androidx.room:room-ktx:$room_version")
kapt("androidx.room:room-compiler:$room_version")
Jetbrains Ttvna
08/01/2023, 5:21 PM