Closed cenob8 closed 7 years ago
Also tested on the wp8 cordova platform and there it works perfectly without the need of any workarounds. So the problem is only in the windows cordova platform.
The first error I encounter is :
Could not copy the file "Y:\projects\cordova-sqlite\platforms\windows\Debug\SQLite3.WindowsPhone\SQLite3.winmd" because it was not found.
Please look at the build output tab very carefully. Something went wrong with the build at that stage.
I then manually copy these files into the following directory :
Y:\projects\cordova-sqlite\platforms\windows\Debug\SQLite3.WindowsPhone
I don't expect it to work if you manually copy those files.
If you need further help please provide the build output that you get before you encounter the "first error".
Using the test bootstrap project on https://github.com/brodybits/Cordova-sqlite-bootstrap-test
Can be reproduced with the following steps :
Then in Visual Studio 2015 I open the solution and run the project on my Nokia Lumia phone (WP 8.1)
The first error I encounter is :
Indeed that file isn't there, neither does that folder exist.
Solution : manually build the SQLite3 solution in :
Switch to the Windows Phone 8.1 solution and change the target to 'ARM', then build.
This results in several output files (amongst others the above mentioned SQLite3.winmd) that end up in:
I then manually copy these files into the following directory :
And update the reference in the project to point to the SQLite3.winmd in the directory above. The bootstrap test project now builds without errors.
But as soon as the window.sqlitePlugin.openDatabase({name: 'sample.db', location: 'default'}); line is called this returns an error :
The debug output in VS also shows the following errors :
Any help would be appreciated.