Unable to load DLL sqlite3 in Universal Windows App running on Mobile

Add a reference to ‘SQLite for Universal App Platform’
This will trigger the error:

Payload contains two or more files with the same destination path ‘sqlite3.dll’.

This error occurs because of different version of sqlite3.dll in both the locations marked by the error.
Resolve this error by simply copying

C:\Program Files (x86)\Microsoft SDKs\UAP\v0.8.0.0\ExtensionSDKs\SQLite.UAP.2015\3.8.11.1\Redist\Debug\ARM\sqlite3.dll

to

C:\Users\%USERNAME%\.nuget\packages\SQLitePCL.raw_basic\0.7.1\build\native\sqlite3_dynamic\winrt81\arm\sqlite3.dll

overwriting existing file.

Rebuild your project. It should compile now.

Leave a Comment