Help debugging cordova build errors


#1

Have tried building a cordova mobile app with 3 different bluetooth serial plugins, and each gives the same error… not knowing much about debugging cordova I would be very grateful if someone could give me a lead on what is going on !

Other cordova plugins are installing fine (geolocation, camera etc) on the same app, it’s just the bluetooth that is breaking…


Error while building for mobile platforms: Error running
/Users/user/.meteor/packages/meteor-tool/.1.1.4.gfpwd1++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/cordova-scripts/cordova.sh
Error during processing of action! Attempting to revert…
Failed to install ‘com.megster.cordova.bluetoothserial’:Error: Uh oh!
"/Users/user/Desktop/kbg/distribution/.meteor/local/cordova-build/platforms/android/src/org/apache/cordova/api/Dummy.java"
already exists!
at Object.module.exports.common.copyNewFile
(/Users/user/.meteor/packages/meteor-tool/.1.1.4.gfpwd1++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/platforms/common.js:70:19)
at module.exports.source-file.install
(/Users/user/.meteor/packages/meteor-tool/.1.1.4.gfpwd1++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/platforms/android.js:65:20)
at Object.ActionStack.process
(/Users/user/.meteor/packages/meteor-tool/.1.1.4.gfpwd1++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/action-stack.js:72:25)
at handleInstall
(/Users/user/.meteor/packages/meteor-tool/.1.1.4.gfpwd1++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:591:20)
at
/Users/user/.meteor/packages/meteor-tool/.1.1.4.gfpwd1++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:340:28
at _fulfilled
(/Users/user/.meteor/packages/meteor-tool/.1.1.4.gfpwd1++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/q/q.js:787:54)
at self.promiseDispatch.done
(/Users/user/.meteor/packages/meteor-tool/.1.1.4.gfpwd1++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch
(/Users/user/.meteor/packages/meteor-tool/.1.1.4.gfpwd1++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/q/q.js:749:13)
at
/Users/user/.meteor/packages/meteor-tool/.1.1.4.gfpwd1++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/q/q.js:509:49
at flush
(/Users/user/.meteor/packages/meteor-tool/.1.1.4.gfpwd1++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/q/q.js:108:17)
Error: Uh oh!
"/Users/user/Desktop/kbg/distribution/.meteor/local/cordova-build/platforms/android/src/org/apache/cordova/api/Dummy.java"
already exists!
at Object.module.exports.common.copyNewFile
(/Users/user/.meteor/packages/meteor-tool/.1.1.4.gfpwd1++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/platforms/common.js:70:19)
at module.exports.source-file.install
(/Users/user/.meteor/packages/meteor-tool/.1.1.4.gfpwd1++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/platforms/android.js:65:20)
at Object.ActionStack.process
(/Users/user/.meteor/packages/meteor-tool/.1.1.4.gfpwd1++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/action-stack.js:72:25)
at handleInstall
(/Users/user/.meteor/packages/meteor-tool/.1.1.4.gfpwd1++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:591:20)
at
/Users/user/.meteor/packages/meteor-tool/.1.1.4.gfpwd1++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:340:28
at _fulfilled
(/Users/user/.meteor/packages/meteor-tool/.1.1.4.gfpwd1++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/q/q.js:787:54)
at self.promiseDispatch.done
(/Users/user/.meteor/packages/meteor-tool/.1.1.4.gfpwd1++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch
(/Users/user/.meteor/packages/meteor-tool/.1.1.4.gfpwd1++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/q/q.js:749:13)
at
/Users/user/.meteor/packages/meteor-tool/.1.1.4.gfpwd1++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/q/q.js:509:49
at flush
(/Users/user/.meteor/packages/meteor-tool/.1.1.4.gfpwd1++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova/node_modules/q/q.js:108:17)

Fetching plugin “com.megster.cordova.bluetoothserial@0.4.3” via plugin registry
Installing “com.megster.cordova.bluetoothserial” for android