我不明白为什么Kotlin注释处理器无法解析这些参数。
build.gradle.kts 的相关部分:
我收到的确切警告是什么。
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}")
}
我收到的确切警告是什么。
> 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]'