Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4D52F200C77 for ; Mon, 1 May 2017 20:45:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4BE4E160BAE; Mon, 1 May 2017 18:45:08 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 92363160BA0 for ; Mon, 1 May 2017 20:45:07 +0200 (CEST) Received: (qmail 72451 invoked by uid 500); 1 May 2017 18:45:06 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 72440 invoked by uid 99); 1 May 2017 18:45:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 May 2017 18:45:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 4538518A11B for ; Mon, 1 May 2017 18:45:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id ylFlbcP9Wf7Y for ; Mon, 1 May 2017 18:45:05 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 0FD5F5F2FD for ; Mon, 1 May 2017 18:45:05 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 8ED41E0630 for ; Mon, 1 May 2017 18:45:04 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 44D3221DE2 for ; Mon, 1 May 2017 18:45:04 +0000 (UTC) Date: Mon, 1 May 2017 18:45:04 +0000 (UTC) From: "Joe Bowser (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CB-7280) "cordova add platform android" throws a confusing exception MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 01 May 2017 18:45:08 -0000 [ 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