To getting start with Phonegap CLI, follow below steps:
1. First, need to install node.js. It is a JavaScript runtime to build your JavaScript code behind the project.
2. Install Phonegap CLI using below command in cmd
>> npm install -g phonegap
You can check installtion of phonegap by typing phonegap in cmd and pressing enter button. It should show some helpful info about phonegap command.
3. If you already have android sdk, fine. Otherwise you can install it from this link Android sdk.
4. Set environment system variables path as
<sdk-path>\platform-tools
<sdk-path>\tools
You can check step 4 by typing android in cmd and pressing enter button. It should open SDK Manager
5. Then create one android virtual device(avd) using AVD Manager to emulate the project.
Now, it's done the installation of Phonegap CLI, Android SDK and Android AVD.
Useful commands:
>> phonegap create hello com.phonegap.helloworld HelloWorld ---> To create phonegap project
>> phonegap platform add android ---> To add andorid platform
>> phonegap run android ---> To build and run project
Let me know any help from Phonegap side
No comments:
Post a Comment