我遵循了这个指南https://developer.xamarin.com/guides/xamarin-forms/working-with/databases/#PCL_WinRT,但在设备上运行应用程序后出现问题(在模拟器WP8.1和安卓平台上运行良好):
Exception thrown: 'System.DllNotFoundException' in
SQLitePCLRaw.provider.e_sqlite3.ni.DLL Exception thrown:
'System.TypeInitializationException' in SQLite-net.ni.DLL

有谁能帮我吗?
发布于 2016-10-03 18:51:59
我和你在同一个点上。要在WindowsPhone中使用C++数据库,您需要包含Visual StudioSQLite2013运行时包。
备注1: Windows8.1和Windows phone8.1要求您包含Visual Studio C++ 2013运行时包才能使SQLitePCL.raw_basic工作。
注2: Windows Phone 8 Silverlight要求您下载Precompiled Binaries for Windows Phone 8 VSIX并在Visual Studio中安装;这将启用SQLite for Windows Phone扩展,然后您可以将其添加到您的应用程序中。
您可以在this github page上找到上述信息和示例项目(xamarin-todo- sample )。这帮助我解决了问题
https://stackoverflow.com/questions/39829589
复制相似问题