Ahmed Ibrahim
09/22/2020, 12:22 PM-Xjvm-default=all
compiler flag?
@Dao
interface SalesDao {
@Transaction
suspend fun insertSalesWithPhotosAndTags(salesWithPhotosAndTags: List<SaleWithPhotosAndTags>) {
// Do something
}
}
And the error that I'm getting
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