最近把 csv 导入 SQLite 给 CursorAdapter 使用出现了这个莫名其妙的错误。
java.lang.IllegalArgumentException: column '_id' does not exist-CSDN博客
查找资料才明白:CursorAdapter 使用的数据库中必须有 _id 这个字段。
好吧,导入的数据库增加 _id,记得勾选AI,代码也要改回来。
最近把 csv 导入 SQLite 给 CursorAdapter 使用出现了这个莫名其妙的错误。
java.lang.IllegalArgumentException: column '_id' does not exist-CSDN博客
查找资料才明白:CursorAdapter 使用的数据库中必须有 _id 这个字段。
好吧,导入的数据库增加 _id,记得勾选AI,代码也要改回来。