[
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