phonegap3.0 simple

  environment: window8(64bit)node

  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.android

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

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.npm

 

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

相關文章
相關標籤/搜索