Search code examples
androidcordovaubuntu-10.10

What is error "Flag '-' is not valid for 'create project'."?


I am trying to compile a PhoneGap project via command

droidgap create

I constantly receive an error: Error: Flag '-' is not valid for 'create project'..

To be more precise, I do not receive any other errors (like FAILED or similar), but this one only. Also the xxx_android folder does get created in the parent directory.

Can I disregard this message? What does it mean?


Solution

  • This happens on Linux systems if the PhoneGap project is located in directories that have spaces in it, like "/home/username/some dir with spaces/".

    It seems that PhoneGap does not handle this well.