Xamarin.Android getting error on Android 7

I am using Xamarin.Android app for development in my project. When I build the app on all versions of Android 7 there are no problems. But when running on Android 7. Error: Problem encountered with native application libraries (see log for details): libmonosgen-2.0.so: unauthorized access to "/system/lib/libsqlite.so".

How to fix it? Please help me!

Many thanks.

+3


source to share


1 answer


Changes have been made to the native linking, which unfortunately SQLite refers to as read here .

The reason your app crashes is because Android Nougat no longer allows you to dynamically link to non-NDK libraries anymore; what SQLite did before. By updating SQLite the issue should be resolved. Please note, though, that other changes you use may be affected by this change.



You will also need to check each one PInvoke

you make yourself.

If so, then you also need to disable targetSdkVersion

in the manifest for your android project before 23

. This will result in a simple warning to the console, not a runtime error.

+2


source







All Articles