You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "teo (JIRA)" <ji...@apache.org> on 2014/08/09 21:05:11 UTC
[jira] [Created] (CB-7280) "cordova add platform android" throws a
confusing exception
teo created CB-7280:
-----------------------
Summary: "cordova add platform android" throws a confusing exception
Key: CB-7280
URL: https://issues.apache.org/jira/browse/CB-7280
Project: Apache Cordova
Issue Type: Bug
Components: Android
Environment: ubuntu 14.04, target android
Reporter: teo
Here's the output from $ cordova platform add android
Downloading cordova library for android...
Download complete
Creating android project...
/home/teo/.cordova/lib/android/cordova/3.5.0/bin/node_modules/q/q.js:126
throw e;
^
Error: An error occurred while listing Android targets
at /home/teo/.cordova/lib/android/cordova/3.5.0/bin/lib/check_reqs.js:87:29
at _rejected (/home/teo/.cordova/lib/android/cordova/3.5.0/bin/node_modules/q/q.js:808:24)
at /home/teo/.cordova/lib/android/cordova/3.5.0/bin/node_modules/q/q.js:834:30
at Promise.when (/home/teo/.cordova/lib/android/cordova/3.5.0/bin/node_modules/q/q.js:1079:31)
at Promise.promise.promiseDispatch (/home/teo/.cordova/lib/android/cordova/3.5.0/bin/node_modules/q/q.js:752:41)
at /home/teo/.cordova/lib/android/cordova/3.5.0/bin/node_modules/q/q.js:574:44
at flush (/home/teo/.cordova/lib/android/cordova/3.5.0/bin/node_modules/q/q.js:108:17)
at process._tickCallback (node.js:415:13)
Error: /home/teo/.cordova/lib/android/cordova/3.5.0/bin/create: Command failed with exit code 8
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Process.ChildProcess._handle.onexit (child_process.js:810:5)
I do have the Android SDK installed, and I don't know whether it is set up properly in order for cordova to find it. I followed installation instructions which, by the way, are extremely convoluted (every documentation page tells you there is a requirement that you needs to install first and links you to another page and these links eventually lead to a loop).
If the exception above is supposed to be telling me that the Android SDK cannot be found, then that's not the proper way of informing me of that. A more meaningful error message should be given (if that is the cause of the exception).
--
This message was sent by Atlassian JIRA
(v6.2#6252)