无法加载DLL“sqlite3.dll”:指定的模块无法在UWP Xamarin.Forms找到 [英] Unable to load DLL 'sqlite3.dll': The specified module could not be found in UWP Xamarin.Forms

查看:1017
本文介绍了无法加载DLL“sqlite3.dll”:指定的模块无法在UWP Xamarin.Forms找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想写应用为UWP Xamarin.Forms与使用的Azure的移动SQLiteStore 包。

I am trying to write app for UWP Xamarin.Forms with use of Azure Mobile SQLiteStore package.

我SQLitePCL包也就是上面提到的软件包依赖斗争。

I struggle with SQLitePCL package which is dependency of that mentioned above package.

在我UWP项目中,我引用的扩展SQLite,让通用的Windows平台也很依赖Microsoft.VCLibs

In my UWP project I referenced extension SQLite for Universal Windows Platform also it's dependency Microsoft.VCLibs

错误是:无法加载DLLsqlite3.dll:指定的模块找不到。 (异常来自HRESULT:0x8007007E)

Error is : Unable to load DLL 'sqlite3.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

Android应用程序工作正常,只有UWP尽快有这个问题崩溃的应用程序,因为它开始调用SQLite的。

Android app works fine, only UWP has this problem crashing app as soon as it start to call SQLite.

并堆栈跟踪:

at SQLitePCL.SQLiteConnection.SetTemporaryDirectory()
at SQLitePCL.SQLiteConnection..ctor(String fileName, SQLiteOpen openFlag, Boolean setTemporaryDirectory)
at Microsoft.WindowsAzure.MobileServices.SQLiteStore.MobileServiceSQLiteStore..ctor(String fileName)
at WellDoneIt.Services.WellDoneItMobileService.d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at WellDoneIt.Services.WellDoneItMobileService.d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at WellDoneIt.ViewModel.ListViewModel.d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at WellDoneIt.ViewModel.ListViewModel.<<-ctor>b__2_2>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b__6_0(Object state)
at System.Threading.WinRTSynchronizationContext.Invoker.InvokeCore()

任何人知道如何解决这个问题呢?

Anyone knows how to solve this issue?

更新
我还双重检查处理器架构和用于仿真它被设置为86,而对于实际Win10移动设备,它可设置为ARM。

Update: I have also double checked processor architecture and for emulator it is set to x86, and for real Win10 Mobile device it is set to ARM.

在两个完全相同得到了同样的问题。然而,当我运行我的本地计算机上的应用程序(我的Windows 10操作系统开发我的)一切工作正常。

On both getting exactly the same issue. However when I run my app on local machine (my Windows 10 OS I develop on) everything works fine.

先谢谢了。

推荐答案

您需要添加一个参考SQLite,让Windows平台。

You need to add a reference to SQLite for windows platforms.

在您的项目UWP去添加引用。

On your UWP project go to Add References.

转到通用的Windows>扩展

Go to Universal Windows > Extensions

然后确保你打勾SQLite的通用应用平台

Then make sure you tick SQLite for Universal App Platform

这篇关于无法加载DLL“sqlite3.dll”:指定的模块无法在UWP Xamarin.Forms找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆