Error when compiling app in Android 9.0 using SQLite.Net-PCL [Xamarin.Android] RRS feed

  • Question

  • User388404 posted

    Hello everyone, I am trying to compile my application that requires a comunications with a local service, which is SQLite, I (and from the start of my long project) have been using SQLite.Net-PCL plugin (https://github.com/oysteinkrog/SQLite.Net-PCL), but when compiling my app into android 9.0 versions, it throws me the following error:

    System.DllNotFoundException: '/system/lib64/libsqlite.so assembly:<unknown assembly> type:<unknown type> member:(null)'

    I have been searching about the error, and I found what I consider "Not verified solutions" since they dont prove why something is correct, in this case, people that answer to this problem give the answer of: "replace the SQLite.Net-PCL plugin for the sqlite.net-pcl one" but why? is there a problem using SQLite.Net-PCL on current versions of android, and how can I avoid this error using the current plugin (SQLite.Net-PCL)?

    Note: this only happens in Android 9.0 (which I have proved) and on other versions such as Android 6.0 is everything ok.

    Wednesday, February 26, 2020 12:39 AM

All replies

  • User382871 posted

    have been using SQLite.Net-PCL plugin (https://github.com/oysteinkrog/SQLite.Net-PCL) From the dependency of the plugin, we can see that the plugin has been deprecated as it is legacy and no longer maintained. I recommend you to use the official SQLite.NET library -- sqlite-net-pcl

    Check the Tutorial: https://docs.microsoft.com/en-us/xamarin/android/data-cloud/data-access/using-sqlite-orm

    Wednesday, February 26, 2020 3:17 AM