Cordova 2.1.0 (PhoneGap) create script for Android says “Project already exists” or “An error occurred. Deleting project”

前端 未结 11 1555
孤独总比滥情好
孤独总比滥情好 2020-12-05 17:45

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 -

         


        
11条回答
  •  我在风中等你
    2020-12-05 18:20

    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

提交回复
热议问题