cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Bowser (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CB-7280) "cordova add platform android" throws a confusing exception
Date Mon, 01 May 2017 18:45:04 GMT

     [ https://issues.apache.org/jira/browse/CB-7280?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Joe Bowser resolved CB-7280.
----------------------------
    Resolution: Incomplete

This looks incomplete, and I'm not sure if this is an issue with the current version of Cordova,
so I'm going to close this for now.

> "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, CLI
>         Environment: ubuntu 14.04, target android
>            Reporter: teo
>            Assignee: Steve Gill
>            Priority: Minor
>
> 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.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message