小编alb*_*er 的帖子

Unity 中的 SQLite 错误

嗨,我正在尝试在我的应用程序中插入一个 SQLite 数据库,但是当我尝试从中调用值时,我收到此错误

DllNotFoundException: sqlite3
Mono.Data.Sqlite.SQLite3.Open (System.String strFilename, SQLiteOpenFlagsEnum flags, Int32 maxPoolSize, Boolean usePool)
Mono.Data.Sqlite.SqliteConnection.Open ()
MuHC.Start () (at Assets/Scripts/TestScripts/MuHC.cs:13)
Run Code Online (Sandbox Code Playgroud)

我在这里关注了这个话题。 http://answers.unity3d.com/questions/743400/database-sqlite-setup-for-unity.html

并具有完全相同的层次结构和代码。(以防万一这是我的代码)

using UnityEngine;
using System.Collections;
using Mono.Data.Sqlite; 
using System.Data; 
using System;

public class MuHC : MonoBehaviour {
    void Start () {
    // Use this for initialization
    string conn = "URI=file:" + Application.dataPath + "/MyAPPA.s3db"; //Path to database.
    IDbConnection dbconn;
    dbconn = (IDbConnection) new SqliteConnection(conn);
    dbconn.Open(); //Open connection to the database.
    IDbCommand dbcmd = dbconn.CreateCommand();





    string sqlQuery = "SELECT …
Run Code Online (Sandbox Code Playgroud)

c# sqlite unity-game-engine

5
推荐指数
1
解决办法
2315
查看次数

标签 统计

c# ×1

sqlite ×1

unity-game-engine ×1