I can't figure out why the kotlin annotation processor cannot resolve these arguments.
Relevant parts of my build.gradle.kts
plugins {
id("kotlin-kapt")
}
android {
defaultConfig {
kapt {
arguments {
arg("room.incremental", "true")
arg("room.schemaLocation", "$projectDir/schemas")
}
}
}
}
dependencies {
implementation("androidx.room:room-runtime:${Versions.room_version}") // room_version = "2.2.4"
kapt("androidx.room:room-compiler:${Versions.room_version}")
implementation("androidx.room:room-ktx:${Versions.room_version}")
}
The exact warning I get is
> Task :app:kaptDebugKotlin
warning: The following options were not recognized by any processor: '[room.schemaLocation, kapt.kotlin.generated, room.incremental]'
The following options were not recognized by any processor: '[room.schemaLocation, kapt.kotlin.generated, room.incremental]'