I ran into a strange problem with cordova. When running
cordova platform add android I got this error:
[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
Turned out, the problem was a space in the name of my app. So I restarted the app and instead of calling it
Find My Car I called it
FindMyCar and then it worked. Strange but true.