I'm trying to integrate AppCenter Analytics into my Windows IoT Core UWP app. On startup I keep getting the following error:
[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)
I get this error on both Foreground and Background apps. Adding a SQLite.UWP.2015 SDK reference doesn't help. Adding SQLite.Net-PCL package reference doesn't help.
Does AppCenter analytics work with UWP + IoT? If so how? If not what are the alternatives?
There is a conflict between Microsoft.AppCenter.Analytics v1.6.1 and sqlite-net-pcl v1.4.118. To resolve the problem downgrade sqlite-net-pcl to 1.3.3.