Has anyone faced a KAPT problem with Room's code g...
# android
a
Has anyone faced a KAPT problem with Room's code generation when using the
-Xjvm-default=all
compiler flag?
Copy code
@Dao
interface SalesDao {
    @Transaction
    suspend fun insertSalesWithPhotosAndTags(salesWithPhotosAndTags: List<SaleWithPhotosAndTags>) {
        // Do something
    }
}
And the error that I'm getting
Copy code
error: An abstract DAO method must be annotated with one and only one of the following annotations: Insert,Delete,Query,Update,RawQuery
    public java.lang.Object insertSalesWithPhotosAndTags(@org.jetbrains.annotations.NotNull()
Tried putting
@JvmDefault
so that maybe Room annotation processor can understand it, but didn't work. Room version: 2.2.5