0

Hello developers I am newby Xamarin.Forms And I want To connect SQlite with Xamarin.Forms. But Does not connect. I copied it Microsoft's oficial documentations about SQlite. This is my code

private void Button_Clicked(object sender, EventArgs e)
{
    string dbPath = Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.Personal),
"database.db3");
    var con = new SQLiteConnection(dbPath);
}

when I click button gives this Error

System.TypeInitializationException: 'The type initializer for 'SQLite.SQLiteConnection' threw an exception.'

where is my Error I can not Find that. Thanks for attention.

Milo
  • 3,365
  • 9
  • 30
  • 44

0 Answers0