Sqlite On Android Does not work with unity
Hi friends, i'm developing a game that stores some value in sqlite3 database. I cannot connect to database, i searched for last 3 days but i did not find any answer. Here is my codes;
try
{
SqliteConnection.CreateFile(Application.persistentDataPath + "/MyDb.s3db");
SqliteConnection.ClearAllPools();
SqliteConnection con =
new SqliteConnection("URI=file:" + Application.persistentDataPath + "/MyDb.s3db");
Debug.Log("started");
if (con == null) Debug.Log("con = null");
con.Open();
Debug.Log("Connection opened");
con.Close();
Debug.Log("Connection closed");
}
catch
{
Debug.Log("There is an error");
}
There is an error on con.Open() line, when i debug it, it tells me an error like "Missing or incorrect header for method ...". How to fix error and what is wrong with this? Please helps, thanks.
Comment
Your answer
Follow this Question
Related Questions
How to read a database (sqlite) on Android? 0 Answers
Problem with sqlite android [Table not found] 1 Answer
How To Read data in SQLite4Unity3D using IDataReade? 0 Answers
Android and SQLite problem 1 Answer
Sqlite memory leak causing game to crash 0 Answers