No such table android_metadata, what's the problem?

后端 未结 7 1859
后悔当初
后悔当初 2020-12-07 15:37

I am copying a pre-existing database to /data/data/packagename/databases using code learned from using-your-own-sqlite-database-in-android-applications

7条回答
  •  长情又很酷
    2020-12-07 16:23

    It seems that for some reason android requires every database to have a table called android_metadata that includes at least one locale. The reigndesign blog you mentioned tells you how to create the table and prefill it with a locale.

    Check if your database contains this table and if the table has some content.

提交回复
热议问题