Why the database can not be known in Android SQLite?

后端 未结 2 886
攒了一身酷
攒了一身酷 2021-01-28 09:33

I\'m making an application Maps connected with SQLite which there are markers, but there is an error that the database can not be recognized, why did it happen? Can anybody help

2条回答
  •  北恋
    北恋 (楼主)
    2021-01-28 10:07

    marker.db as a table name tells to look up a table name db in database marker and you don't have the database marker attached.

    Either write the table name in double quotes like "marker.db", or better yet, rename the table to something that better resembles whatever you're putting in there, without a ..

提交回复
热议问题