JUST-DO-IT-NOW 2016-10-23 08:35 采纳率: 83.3%
浏览 4715
已采纳

Unty 使用SQLITE 运行时出现“database is not open”

错误信息如下:
InvalidOperationException: Database is not open
Mono.Data.Sqlite.SqliteCommand.InitializeForReader ()
Mono.Data.Sqlite.SqliteCommand.ExecuteReader (CommandBehavior behavior)
Mono.Data.Sqlite.SqliteCommand.ExecuteReader ()
(wrapper remoting-invoke-with-check) Mono.Data.Sqlite.SqliteCommand:ExecuteReader ()
SQLiteHelper.ExecuteQuery (System.String queryString) (at Assets/Script/SQLiteHelper.cs:51)
SQLiteHelper.CreateTable (System.String tableName, System.String[] colNames, System.String[] colTypes) (at Assets/Script/SQLiteHelper.cs:205)
SQLiteDemo.Start () (at Assets/Script/SQLiteDemo.cs:20)

  • 写回答

6条回答 默认 最新

  • threenewbee 2016-10-23 08:48
    关注

    看下你的sqlite数据库文件是否存在,在指定的目录下。并且可以读取

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(5条)

报告相同问题?