i tried to create a simple application that uses sqlite as its database. Everything works fine when debugging but after exporting the apk, it printed an error.
"System.TypeInitializationException: The type initializer for 'Microsoft.Data.Sqlite.SqliteConnection' threw an exception."
This error pointed to a line of code but that code was just a string.
var connStr = @"Data Source=database.db";
if someone had encountered and solved this problem, mind sharing the solution and the cause of the error? Thanks!
i tried to create a simple application that uses sqlite as its database. Everything works fine when debugging but after exporting the apk, it printed an error.
This error pointed to a line of code but that code was just a string.
if someone had encountered and solved this problem, mind sharing the solution and the cause of the error? Thanks!