翻了好久,想哭
报错:
- Type of the parameter must be a class annotated with @Entity
- Not sure how to handle insert method's return type. public abstract java.lang.Object insertData
解决方式:
1.Dao里面不要写suspend(不建议)
2.升级room版本,我是直接升级到最高版本2.8.3,Kotlin1.7.0,成功。
翻了好久,想哭
报错:
1.Dao里面不要写suspend(不建议)
2.升级room版本,我是直接升级到最高版本2.8.3,Kotlin1.7.0,成功。

被折叠的 条评论
为什么被折叠?