New phonegap project always list HelloWorld

血红的双手。 提交于 2019-12-11 21:53:35

问题


Hello I am trying to create new android project with phonegap, but I want not to be HelloWorld So in the console I type with this syntax: phonegap create [folder-name] [namespace] [project-name]

And if I type something like this: phonegap create evilworld com.example.evilworld evilworld

phonegap create new folder named evilworld, but in the config file nothing's change! it is again with the hellowrold stuff.

Is someone know how may I fix that because I need to create multiple projects on my machine? Thanks


回答1:


I think the same like PurpleDroid. The mistake must be anywhere, but not at cordova. The command seems fine. Here's a detailed explanation of how to create a Project ->

  • Open Terminal
  • cd ~/desktop
  • cordova/phonegap create test com.example.test test
  • cd /test
  • cordova platform add XXXX
  • cordova plugin add XXXX
  • cordova build

and after that all u should have your stuff named the right way. Maybe u have to make an Update to a new phonegap version?!




回答2:


Since a few hours research I think I found the problem. First of all I installed cordova. Second I add the git global variable. Then the phonegap project run just fine



来源:https://stackoverflow.com/questions/24605033/new-phonegap-project-always-list-helloworld

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!