Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B7F34DBB7 for ; Sun, 20 Jan 2013 22:02:12 +0000 (UTC) Received: (qmail 89498 invoked by uid 500); 20 Jan 2013 22:02:12 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 89474 invoked by uid 500); 20 Jan 2013 22:02:12 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 89466 invoked by uid 500); 20 Jan 2013 22:02:12 -0000 Delivered-To: apmail-incubator-callback-dev@incubator.apache.org Received: (qmail 89463 invoked by uid 99); 20 Jan 2013 22:02:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Jan 2013 22:02:12 +0000 Date: Sun, 20 Jan 2013 22:02:12 +0000 (UTC) From: "Filip Maj (JIRA)" To: callback-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-2272) can't add android to project MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-2272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13558402#comment-13558402 ] Filip Maj commented on CB-2272: ------------------------------- This is one that came up on IRC as well. Before 2.4.0rc1, if the android {{./bin/create}} script fails, it exits with code 0, so the CLI tools don't know if {{./bin/create}} fails or not. This was tracked in CB-2204. It's quite possible that your Android {{./bin/create}} script is erroring out. On IRC [~devgeeks] came across the same issue and it turned out he didn't have permissions on {{/usr/local/lib/node_modules/cordova/lib/cordova-2.3.0/cordova-android/bin/create}}, but because it didn't error out, cordova-cli failed to give a good error message. Try the following: {code} cd /usr/local/lib/node_modules/cordova/lib/cordova-2.3.0/cordova-android ./bin/create tmp {code} If it works, then it's something else. Otherwise, it's probably permissions or something. When you install {{cordova}} or run {{npm update}} for it, it should print out a notice, instructing you to run {{sudo chown}} on {{node_modules/cordova}} if you have node installed globally. > can't add android to project > ---------------------------- > > Key: CB-2272 > URL: https://issues.apache.org/jira/browse/CB-2272 > Project: Apache Cordova > Issue Type: Bug > Components: CLI > Affects Versions: 2.3.0 > Environment: its actuall 2.3.6 but jira is rad > Reporter: Brian LeRoux > Assignee: Filip Maj > > #! cordova create Baz > cd #! cd Baz/ > #! cordova platform add android > The provided path is not an Android project. > #! ls > platforms plugins www > #! ls platforms/ > #! cordova platform add ios > #! ls > platforms plugins www > #! ls platforms/ > ios > #! cordova platform add android > The provided path is not an Android project. > #! -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira