[英]sqlite-net-pcl does not work in Windows Phone
我按照本指南https://developer.xamarin.com/guides/xamarin-forms/working-with/databases/#PCL_WinRT ,但我在設備上運行應用程序后出現問題(在模擬器WP 8.1和Android平台上工作正常):
Exception thrown: 'System.DllNotFoundException' in
SQLitePCLRaw.provider.e_sqlite3.ni.DLL Exception thrown:
'System.TypeInitializationException' in SQLite-net.ni.DLL
可以幫幫我一個人嗎?
我和你一樣。 您需要使用Visual Studio C ++ 2013 Runtime包來使用WindowsPhone中的SQLite-Database。
注意1:Windows 8.1和Windows Phone 8.1要求您包含Visual Studio C ++ 2013運行時包,以便SQLitePCL.raw_basic工作。
注意2:Windows Phone 8 Silverlight要求您下載Windows Phone 8 VSIX的預編譯二進制文件並在Visual Studio中安裝; 這將啟用SQLite for Windows Phone Extension,然后您可以將其添加到您的應用程序中。
您可以在此github頁面上找到上述信息和示例項目(xamarin-todo-sample)。 這有助於我解決問題
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.