Status Update
Comments
st...@gmail.com <st...@gmail.com> #2
I am not sure if this is related to
st...@gmail.com <st...@gmail.com> #3
Hmm alright before, my gradle file looked like this
plugins {
...
room...
}
dependencies {
...
}
room {
schemaDirectory(someDir)
}
Adding a ksp
block like this:
plugins {
...
room...
}
dependencies {
...
}
room {
schemaDirectory(someDir)
}
ksp {
arg("room.schemaLocation", someDir)
}
So passing the same dir also to ksp as a generic arg seems to fix this.
Important to note that removing the room {}
block fails some validation on the plugin itself, despite the fact that it does not seem to be used at all.
Still worth fixing, but if someone else encounters this too they can work around it using the ksp { arg("room.schemaLocation", someDir) }
approach.
da...@google.com <da...@google.com> #4
Hi - Indeed the root cause of this is
Description
Component used: androidx.room:room-compiler and androidx.room plugin
Version used: 2.7.0-alpha11
Devices/Android versions reproduced on: N/A
Using room plugin and ksp, when bumping to use ksp2, a previously working build now suddenly fails with
The main problem is that there is nothing actionable in the error, I have no idea what I could possibly do to fix this.
DiagnosticsReport20241116-182352.zip
Add
ksp.useKSP2=true
to the gradle.properties file and just run your appThe entire stacktrace looks like this