Phonegap Build stops working with some NPM cordova plugins

  • 1
  • Problem
  • Updated 4 years ago
Since Phonegap upgrade to 6.1.0, I cant use the plugin cordova-sqlite-ext


Error - Plugin error (you probably need to remove plugin files from your app): Fetching plugin "cordova-sqlite-ext" via npm Installing "cordova-sqlite-ext" at "0.10.0" for android Failed to install 'cordova-sqlite-ext':CordovaError: Uh oh!
"/tmp/gimlet/23886140/2058005/www_android/project/cordova/plugins/cordova-sqlite-ext/node_modules/cordova-sqlite-ext-deps/libs/sqlite-connector.jar" not found! at copyFile (/tmp/gimlet/23886140/2058005/www_android/project/cordova/lib/pluginHandlers.js:182:36) at copyNewFile (/tmp/gimlet/23886140/2058005/www_android/project/cordova/lib/pluginHandlers.js:214:5) at handlers.source-file.install
(/tmp/gimlet/23886140/2058005/www_android/project/cordova/lib/pluginHandlers.js:34:13) at Object.ActionStack.process
(/tmp/gimlet/23886140/2058005/www_android/project/cordova/node_modules/cordova-common/src/ActionStack.js:56:25) at Api.addPlugin (/tmp/gimlet/23886140/2058005/www_android/project/cordova/Api.js:205:20)
at handleInstall (/home/ec2-user/.npm/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/install.js:602:6) at /home/ec2-user/.npm/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/install.js:391:24 at _fulfilled (/home/ec2-user/.npm/lib/node_modules/pgb-plugman/node_modules/q/q.js:787:54) at self.promiseDispatch.done (/home/ec2-user/.npm/lib/node_modules/pgb-plugman/node_modules/q/q.js:816:30) at Promise.promise.promiseDispatch (/home/ec2-user/.npm/lib/node_modules/pgb-plugman/node_modules/q/q.js:749:13) Uh oh!
"/tmp/gimlet/23886140/2058005/www_android/project/cordova/plugins/cordova-sqlite-ext/node_modules/cordova-sqlite-ext-deps/libs/sqlite-connector.jar" not found! - You can fix this here
Photo of calebeaires

calebeaires

  • 23 Posts
  • 0 Reply Likes
  • frustrated

Posted 4 years ago

  • 1
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
You may be on a dead track.
According to the plugin's docs:

A recent version of the Cordova CLI (such as 6.1.1) is recommended. Cordova versions older than 6.0.0 are not supported by this project. Use of other systems such as PhoneGap CLI, PhoneGap Build, or plugman is not tested and no longer supported.
Photo of calebeaires

calebeaires

  • 23 Posts
  • 0 Reply Likes
This is a real problem to me. I dont have the keystore on my PC. I just have it on the Phonegap Build, but know I cant upgrade my app becouse PhoneGap build and this plugin are not compatible.

Do you have some suggest on this situation?
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Well, why do you need to upgrade now, then. Can't you try a combination of
- the latest plugin with PGB cli-6.0.0, OR
- a previous version of the plugin with PGB cli-6.1.0, OR
- an older version of both

It will be a while until you really need newer versions of both.

Note: you could also see if another plugin would fit your needs. Does it really have to be exactly this plugin?
Photo of calebeaires

calebeaires

  • 23 Posts
  • 0 Reply Likes
I will try like you sad. I must use this plugin since it is the only one that can make use of pre-populated sqlite database.
Photo of calebeaires

calebeaires

  • 23 Posts
  • 0 Reply Likes
Can you help me use the old version, or tell me how write correctly on the config.xml to make this plugin work on the last phonegap update? I tried to find another solution but I havent found.

This is the way I put the preference on config.xml
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
If you want to post code, please wrap it in a CODE element, as described under 'some HTML allowed".
Photo of calebeaires

calebeaires

  • 23 Posts
  • 0 Reply Likes
This is how I am writing the on config.xml. Could you help me do this work



<gap:plugin spec="cordova-sqlite-ext" source="npm">

Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Add to this line:
spec="0.9.1"

....or an even older release.
Find them here:
https://github.com/litehelpers/cordov...