what's the difference between cordova-plugin-sqlite-2 and cordova-sqlite-storage?

Solution 1:

Make sure to have only ONE of the plugins.

The error that I got seems to be caused by both plugins existing inside the package.json. I thought I've removed it by using the ionic cordova plugin rm cordova-plugin-sqlite-2 but when I removed and added the platform again, and run ionic cordova run android -l, the error still showed up and inside the package.json, apparently cordova-plugin-sqlite-2 was still available.

Checked inside the config.xml and removed it from there, removed and added the platform, error disappeared.