java.lang.IllegalArgumentException: column '_id' does not exist

前端 未结 5 1513
暖寄归人
暖寄归人 2020-12-15 16:37

I\'m trying to debug my application on a real device but I get this error:

ERROR/AndroidRuntime(981): Caused by: java.lang.IllegalArgumentException:

5条回答
  •  独厮守ぢ
    2020-12-15 17:15

    CursorAdapter always requires a _id column to be present. So, in the list of projections used for creating Cursor, you need to add _id column.

提交回复
热议问题