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

前端 未结 11 1556
孤独总比滥情好
孤独总比滥情好 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:08

    I had the same issue. I was running the command from this location

    Harddriv:\cordova-2.1.0\incubator-cordova-android >create "Harddriv:\externalapps\phonegap_projects\HelloWorld\" com.phonegapaapp.helloworld helloworl
    

    The I got the error you mentioned. Then instead i tried relative path to the location as follows

    Harddriv:\cordova-2.1.0\incubator-cordova-android >create "..\externalapps\phonegap_projects" com.phonegapaapp.helloworld helloworl
    

    It worked for me!!!

提交回复
热议问题