codelab-kotlin-coroutines icon indicating copy to clipboard operation
codelab-kotlin-coroutines copied to clipboard

Room TitleDao auto generated dao impl class has error with Room version '2.4.1'

Open huanbin opened this issue 3 years ago • 1 comments

TitleDao.java:15: Not sure how to handle insert method's return type. public abstract java.lang.Object insertTitle(@org.jetbrains.annotations.NotNull()

TitleDao.java:17: Type of the parameter must be a class annotated with @Entity or a collection/array of it. kotlin.coroutines.Continuation<? super kotlin.Unit> continuation);

huanbin avatar Aug 15 '22 08:08 huanbin

I am use Kotlin 1.7.10 , replace room version with '2.4.3' is ok!

huanbin avatar Aug 15 '22 08:08 huanbin