Xamarin.Forms共享项目:System.DllNotFoundException:/system/lib/libsqlite.so

时间:2018-10-23 10:59:05

标签: sqlite xamarin.forms sqlite-net

我已经在共享对象中使用SQLite.cs和SQLiteAsync.cs类超过一年了。但是,Google现在要求在将应用程序上传到Google Play时,将Android项目的目标至少设置为8.0(26)。将目标版本设置为26将导致SQLite.cs和SQLiteAsync.cs类在我的应用中不再起作用。任何SQLite操作都会导致以下错误:

System.DllNotFoundException: /system/lib/libsqlite.so

为此,有据可查的解决方案是根据以下文章将目标设置为26以下(不再可行),或更新sqlite-net-pcl nuget:

Xamarin error System.DllNotFoundException: /system/lib/libsqlite.so on Android 7.0

System.DllNotFoundException: /system/lib/libsqlite.so- Xamarin Forms

但是,这仅适用于PCL项目。有人知道共享项目的修复程序吗?

0 个答案:

没有答案