cordova build android gives me the following err
node_modules/q/q.js:126 throw e; (*error details)
This question has been asked before, but
@mylord I had similar error and it was due to invalid debug certificate. On Linux Delete ~/.android debug.keystore file.
The next time you build, the build tools will regenerate a new keystore and debug key.
This solved for me. I hope this helps.