【发布时间】:2018-11-11 04:01:00
【问题描述】:
我正在尝试将 AppCenter Analytics 集成到我的 Windows IoT Core UWP 应用中。在启动时,我不断收到以下错误:
[AppCenter] ERROR: Failed to configure App Center.
Microsoft.AppCenter.Storage.StorageException: Cannot initialize SQLite library. ---> System.IO.FileLoadException: Could not load file or assembly 'SQLite-net, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
at Microsoft.AppCenter.Storage.StorageAdapter..ctor(String databasePath)
at Microsoft.AppCenter.Storage.Storage.DefaultAdapter()
--- End of inner exception stack trace ---
at Microsoft.AppCenter.Storage.Storage.DefaultAdapter()
at Microsoft.AppCenter.AppCenter.InstanceConfigure(String appSecretOrSecrets)
at Microsoft.AppCenter.AppCenter.PlatformStart(String appSecret, Type[] services)
我在前台和后台应用程序中都收到此错误。添加 SQLite.UWP.2015 SDK 参考并没有帮助。添加 SQLite.Net-PCL 包引用没有帮助。
AppCenter 分析是否适用于 UWP + IoT?如果有怎么办?如果没有,有什么替代方案?
【问题讨论】:
标签: uwp windows-10-iot-core visual-studio-app-center