[
https://issues.apache.org/jira/browse/CB-5845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13971376#comment-13971376
]
Victor Adrian Sosa Herrera commented on CB-5845:
------------------------------------------------
Hello
This looks odd to me. I use Ubuntu 12.04 LTS as my primary dev worksation and
have no problems with it.
For what I can see in the log, it occurs to me that probably you need to either
download Android SDK (latest) or create an Android Virtual Device. You can take
a look at the following link to know how to configure your environment for
Android development
http://cordova.apache.org/docs/en/3.4.0/guide_platforms_android_index.md.html#Android%20Platform%20Guide
Moreover, can you elaborate a little bit more about your scenario. As a plus,
could you run the add platform command with -d appended at the end?
Something like this:
$ sudo cordova platform add android -d
> Can't Add platform on Ubuntu
> ----------------------------
>
> Key: CB-5845
> URL: https://issues.apache.org/jira/browse/CB-5845
> Project: Apache Cordova
> Issue Type: Bug
> Components: Ubuntu
> Environment: Ubuntu
> Reporter: Sylvian ROPERT
> Fix For: 3.3.0
>
>
> sudo cordova platforms add android
> Creating android project...
> /usr/lib/node_modules/cordova/node_modules/q/q.js:126
> throw e;
> ^
> Error: An error occured during creation of android sub-project.
> /home/my_name/.cordova/lib/android/cordova/3.3.0/bin/node_modules/q/q.js:126
> throw e;
> ^
> Error: An error occurred while listing Android targets
> at
> /home/my_name/.cordova/lib/android/cordova/3.3.0/bin/lib/check_reqs.js:87:29
> at _rejected
> (/home/my_name/.cordova/lib/android/cordova/3.3.0/bin/node_modules/q/q.js:808:24)
> at
> /home/my_name/.cordova/lib/android/cordova/3.3.0/bin/node_modules/q/q.js:834:30
> at Promise.when
> (/home/my_name/.cordova/lib/android/cordova/3.3.0/bin/node_modules/q/q.js:1079:31)
> at Promise.promise.promiseDispatch
> (/home/my_name/.cordova/lib/android/cordova/3.3.0/bin/node_modules/q/q.js:752:41)
> at
> /home/my_name/.cordova/lib/android/cordova/3.3.0/bin/node_modules/q/q.js:574:44
> at flush
> (/home/my_name/.cordova/lib/android/cordova/3.3.0/bin/node_modules/q/q.js:108:17)
> at process._tickCallback (node.js:415:13)
> at /usr/lib/node_modules/cordova/src/platform.js:244:30
> at ChildProcess.exithandler (child_process.js:641:7)
> at ChildProcess.EventEmitter.emit (events.js:98:17)
> at maybeClose (child_process.js:735:16)
> at Socket.<anonymous> (child_process.js:948:11)
> at Socket.EventEmitter.emit (events.js:95:17)
> at Pipe.close (net.js:466:12)
--
This message was sent by Atlassian JIRA
(v6.2#6252)