質問

I have installed the latest version of Phonegap (v3.x) using Node and have run the following via the command line

$ phonegap create my-app

This displays the following:

[phonegap] the options undefined C:\AndroidProjects\my-app com.phonegap.helloworld HelloWorld
[phonegap] created project at C:\AndroidProjects\my-app

Even when I create another app and add the options similar to that above i get the same message? Any ideas?

役に立ちましたか?

解決

Try installing the cordova cli

npm install -g cordova

Then run

cordova create new_directory_name com.example.hello Hello\ World

This will create a new directory "new_directory_name" and generate a app with id "com.example.hello" and title "Hello World" (you may need to escape the space between Hello and world some other way. The \ works on *nix but I see you are on windows.)

Next cd into the new dir and run

cd new_directory_name
cordova platforms add android

After this all phonegap commands should simply work.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top