locked
How to resolve Unhandled Exception: System.DllNotFoundException: /system/lib/libsqlite.so occurred? RRS feed

  • Question

  • User326663 posted

    I have created a xamarin.android app and its working fine in device having Android 6, but when I tried to run it on device having Android 7, then I am getting this error "Unhandled Exception: System.DllNotFoundException: /system/lib/libsqlite.so occurred". I have also updated nuget package from https://www.nuget.org/packages/SQLite.Net.Platform.XamarinAndroidN but still I am getting this issue.

    Please let me know how to resolve this issue.

    Wednesday, January 3, 2018 1:16 PM

All replies

  • User101185 posted

    Check this link https://stackoverflow.com/questions/40930643/xamarin-error-system-dllnotfoundexception-system-lib-libsqlite-so-on-android-7

    Wednesday, January 3, 2018 1:23 PM
  • User326663 posted

    I went through the above link and installed SQLiteNetExtensions nuget package in my xamarin project , rebuild it and deployed it in Android 7 device and got same error. Its working fine for Android 6 device.

    Thursday, January 4, 2018 11:19 AM
  • User326663 posted

    @pratiuskumardubey I installed SQLiteNetExtensions nuget package but it didn't work. Getting same exception.

    Friday, January 5, 2018 1:21 PM
  • User101185 posted

    What is a exception are you getting?

    Sunday, January 7, 2018 7:15 AM
  • User326663 posted

    @pratiuskumardubey I m getting same exception System.DllNotFoundException: /system/lib/libsqlite.so occurred. I have installed the package as mentioned in the link but still getting same exception.

    Monday, January 8, 2018 11:22 AM
  • User325400 posted

    @meghatiwari said: The solution for me was to update the SQLiteNetExtensions nuget package to the latest Alpha version (prerelease), it's important to first remove all references to sqlite related libs though. and also Check this https://forums.xamarin.com/discussion/83761/android-7-0-system-dllnotfoundexception-system-lib-libsqlite-so

    https://forums.xamarin.com/discussion/86762/dll-issue-with-sqlite-with-nougat-version-7-0

    Monday, January 8, 2018 2:14 PM
  • User101249 posted

    @darshanJS thank you for the small tip...that worked for me

    Thursday, May 7, 2020 1:51 AM