I am trying to create an Android project on Windows using Cordova 2.2.0 (PhoneGap). According to this blog post this command should work -
To any lost souls who have worked their way through these answers (as I have) and still have had no satisfaction, despite having everything configured correctly.
Try downloading phonegap from Github repo, currently version 2.3.0
https://github.com/phonegap/phonegap
This worked for me.
To be clear, your target project path should be to be where you want the project to be created and then the last directory will be what you want to be created. For example:
./create ./test2 com.mytest MyTest
In this case you want to create a project in the current directory in a new folder called "test2" and this folder has not been created yet (it will be created when this is run).
UPDATE: If you are using a newer verison of the Cordova Edge or greater, i highly recommend using the Cordova CLI Utility here: http://cordova.apache.org/docs/en/edge/guide_cli_index.md.html#The%20Command-Line%20Interface
I had this problem using:
create "c:\yada\yada\pic to post" <package_name> <project_name>
but when i took the spaces out the folder name it worked
create "c:\yada\yada\pictopost" <package_name> <project_name>
So if you have spaces in the project path then take them out.
I had a silimar problem here, the script did't want to create my projects, I have set up all PATHS, downloaded all SDKs and tools, removed spaces - still not working.
The problem was, that the script didn't create the project sub directories. An updated/fixed script can be found in this discussion:
https://groups.google.com/forum/?fromgroups=#!topic/phonegap/7wOqriD4YjY
or downloaded directly here:
https://phonegap.googlegroups.com/attach/b2d05c8a6a929569/create.js?view=1&part=4
Greetings!
Asped
This drove me up the wall. Solution. Do not create the folder for the project. It will create one for you.
create <project_folder_path> <package_name> <project_name>
When specifying <project_folder_path>
, do NOT first create the folder on your HD.