Room問題總結

cannot find implementation for com.im.room.AppDatabase. AppDatabase_Impl does not exist
build配置文件中添加
annotationProcessor "androidx.room:room-compiler:$room_version"
警告: Schema export directory is not provided to the annotation processor so we cannot export the schema. You can either provide `room.schemaLocation` annotation processor argument OR set exportSchema to false.
public abstract class AppDatabase extends RoomDatabase {

https://blog.csdn.net/hexingen/article/details/78725958

錯誤: Entities and POJOs must have a usable public constructor. You can have an empty constructor or a constructor whose parameters match the fields (by name and type). - java.util.List

https://blog.csdn.net/I13kmsteady/article/details/88218416 Android Room 之存儲 Objects 中的 List
https://blog.csdn.net/weixin_34309543/article/details/87350723 Android room 存儲複雜數據類型
https://stackoverflow.com/questions/53085704/room-typeconverter Room TypeConverter

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章