Android: column '_id' does not exist

后端 未结 3 1670
南笙
南笙 2020-11-28 14:45

I am getting this error

IllegalArgumentException: column \'_id\' does not exist

When using a SimpleCursorAdapter to

3条回答
  •  猫巷女王i
    2020-11-28 15:25

    If you are trying to use an existing sqlite database in your Android application then you need to do some prep work to get it to work properly. This blog post describes the process in detail.

    http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/

提交回复
热议问题