Android Room: "Each bind variable in the query must have a matching method parameter"
I'm using room database for android. It was working fine until I updated to Kotlin 1.7.0 recently.
Now I get the following error:
Each bind variable in the query must have a matching method parameter. Cannot find method parameters for :limit, :offset.
Here is my dao:
@Query("SELECT * FROM eventdata ORDER BY id ASC LIMIT :limit OFFSET :offset")
fun allEvents(limit: Int, offset: Int): List
Here my build.gradle
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin:...