@BindingClass<ItemMiMiwuDeviceBinding> // this
@Keep
@Entity(tableName = "miwu_device")
data class MiwuDevice()
> Task :app:kspDebugKotlin FAILED
e: [ksp] C:/Users/z1303/AndroidStudioProjects/MiHome/app/src/main/java/com/github/miwu/logic/database/model/MiwuDevice.kt:17: [MissingType]: Element 'com.github.miwu.logic.database.model.MiwuDevice' references a type that is not present
e: [ksp] androidx.room.RoomKspProcessor was unable to process 'com.github.miwu.logic.database.AppDatabase' because not all of its dependencies could be resolved. Check for compilation errors or a circular dependency with generated code.
e: Error occurred in KSP, check log for detail
[ksp] C:/Users/z1303/AndroidStudioProjects/MiHome/app/src/main/java/com/github/miwu/logic/database/model/MiwuDevice.kt:17: [MissingType]: Element 'com.github.miwu.logic.database.model.MiwuDevice' references a type that is not present
当我添加注解时,编译报错
原因是databinding的类是java的
解决方案