phonegap3.0 simple

时间:2024-05-06 13:03:07

  environment: window8(64bit)

  First you go to the phonegap site and install it. note that installing your node if you don't installed it on you computer, note you shoud select zip file carefully by 32 or 64.

  now ok, you click the application that named 'node command line', input this command as followings:

npm install -g cordova
cordova create hello com.example.hello HelloWorld
cd hello
cordova platform add android /* or : cordova platform add ios

  after that ,you could import the project by you develop tool. if you are a androider you should select eclipse.

  sometime, it may appear the error: ‘error an error occurred during creation of android subproject’ , you should modify like this: