1

I upgrad my Nexus 5X yesterday to test my app on the new OS and i got a messagebox saying that their is an error with sqlite. Looking on the web i found that due to a change by Google, Android N will now only permit linking to NDK-provided native libraries. libsqlite.so is not an NDK-provided native library so my app crash now.

Did someone tried to use libsqlite3_xamarin.so ? Seems to be a solution ? People are saying that we may bundle libsqlite to the app. Cann someone telle me how to achieve this through visualstudio ?

Thank you very much !

2
  • 1
    Typically just an update and rebuild, see Common Libraries Impacted blog.xamarin.com/… and the sqlite shared library will be included in your package Commented Sep 21, 2016 at 18:22
  • This is what i've done. Deleted all SQLite références then trough Nuget console i run Install sqlite-net-pcl. It works like à charm Commented Sep 22, 2016 at 15:29

2 Answers 2

3

An easy solution to this is to use the latest version of the sqlite-net-pcl package from NuGet.

The limitation in Android N is that the built in Sqlite library can only be used with the android.database.sqlite classes. Using the package from NuGet will add a version of the library to your project.

Eric sink has more details on the issue here.

Sign up to request clarification or add additional context in comments.

Comments

0

The new System.Data.dll provided by the mono team includes an embedded version of the sqlite.so nativa library name libsqlite3_xamarin.so. To include this library you just need to re-build your project. If you are using any other library that wa accessing /system/lib/libsqlite.so this will not work in Android N. Every library should embed sqlite.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.