1

HELP, I get an error at this line:

var r = SQLite3.Open (databasePathAsBytes, out handle, (int) openFlags, IntPtr.Zero);

System.DllNotFoundException: occurred

what can I do?

  • Add a reference to mono.data.sqliteclient to your project. – Fang Apr 02 '18 at 20:57
  • which reference do I need to add? –  Apr 02 '18 at 20:59
  • Where can I find mono.data.sqliteclient, because it's not a nuget package or reference –  Apr 02 '18 at 21:14
  • I've never used it myself, but what about this one: https://www.nuget.org/packages/Mono.Data.Sqlite.Portable/ – Fang Apr 02 '18 at 21:17
  • Try adding this nuget package "SQLite.Net-PCL" – Hichame Yessou Apr 02 '18 at 21:19
  • Installed it, still nothing! –  Apr 02 '18 at 21:26
  • In many occasion you may need to **clean solution - close VS - delete bin and obj - start VS back** You may also need to delete the **Package** folder before starting VS back – Fabrice T Apr 02 '18 at 21:28
  • What if it gets broken! –  Apr 02 '18 at 21:29
  • That folders are generated while you are coding or debugging. bin and obj are in your project folder as same as Package which is in the solution folder. When you will restart VS it will **restaure** the packages and **regenerate** the files in the **obj** folder – Fabrice T Apr 02 '18 at 21:31
  • still gives an error! –  Apr 03 '18 at 05:50
  • 1
    You could refer to this [post](https://stackoverflow.com/questions/40930643/xamarin-error-system-dllnotfoundexception-system-lib-libsqlite-so-on-android-7) – Billy Liu - MSFT Apr 03 '18 at 06:15

0 Answers0