In the documentacion says
$ cordova create HelloWorld com.example.hello "Hello World"
$ cd HelloWorld
$ cordova platform add android
But Fail
[Error: An error occured during creation of android sub-project. An unexpected error occurred: "$ANDROID_BIN" create project --target $TARGET --path "$PROJECT_PATH" --package $PACKAGE --activity $ACTIVITY >&/dev/null exited with 1
Deleting project...
]
Next, found solution:
$ cordova create HelloWorld com.example.hello "HelloWorld"
$ cd HelloWorld
$ cordova platform add android
I hope help you anybody