:app:kaptDebugKotlin
w: warning: The following options were not recognized by any processor: '[kapt.kotlin.generated, room.incremental]'
为什么会出现这种情况?我正在一个多模块项目中使用Room。
- Kotlin版本:1.3.50
- AGP:3.5.0
- Room:2.2.0-rc01
共享库模块:
api "androidx.room:room-runtime:$room_version"
api "androidx.room:room-ktx:$room_version"
api "androidx.room:room-rxjava2:$room_version"
应用程序模块:
kapt "androidx.room:room-compiler:$room_version"
Gradle.properties
kapt.incremental.apt=true
build.gradle 中的 defaultConfig 包括这些编译选项:
javaCompileOptions {
annotationProcessorOptions {
arguments = ["room.incremental":"true"]
}
}