Unable to open database – Android

You can execute the following SQL statements to do this:

CREATE TABLE“android_Metadata”(“locale”TEXT DEFAULT’en_US’)

Now insert a line of text "en_us" in the "android_metadata" table:

INSERT INTO“android_Metadata”VALUES(‘en_US’)

Then, it is necessary to rename the main ID field of the table to "_id" so that Android knows the location of the ID field of the bound table

Now copy the new database file to your project assets folder and it will work

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>