couchbaselabs / Couchbase-Lite-PhoneGap-Plugin

Plugin to install Couchbase Lite in your PhoneGap app on iOS or Android
183 stars 67 forks source link

Version 1.0.2 doesn't install cleanly using the Cordova CLI #33

Open spikymonkey opened 10 years ago

spikymonkey commented 10 years ago

Running

cordova plugin add com.couchbase.lite.phonegap@1.0.2

results in the following error:

Failed to install 'com.couchbase.lite.phonegap':Error: Uh oh! "/home/gareth/Dev/mobile/plugins/com.couchbase.lite.phonegap/lib/android/cbliteandroid.zip" not found! at Object.module.exports.common.copyFile (/usr/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/platforms/common.js:43:40) at Object.module.exports.common.copyNewFile (/usr/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/platforms/common.js:60:16) at module.exports.source-file.install (/usr/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/platforms/android.js:51:20) at Object.ActionStack.process (/usr/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/action-stack.js:70:25) at handleInstall (/usr/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:560:20) at /usr/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:320:20 at _fulfilled (/usr/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:798:54) at self.promiseDispatch.done (/usr/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:827:30) at Promise.promise.promiseDispatch (/usr/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:760:13) at /usr/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:574:44

plugin.xml does contain a reference to

<source-file src="lib/android/cblite_android_.zip" target-dir="libs"/>

but that zip doesn't exist in the lib directory. I'm guessing we can just remove the reference to it from plugin.xml?

tannerlinsley commented 10 years ago

+1

squio commented 10 years ago

Running in same problem for default plugin installation:

$ cordova plugin add --force com.couchbase.lite.phonegap

Any news on this?

Update: OK, so just commenting out this line from plugin.xml makes the installation work and as far as I can tell results in a functional installation (based on the Todo demo app).