Phonegap Installation Step by Step

Want create site? Find Free WordPress Themes and plugins.

Looking for Simple Step by Step Guidelines for installation and configuration that requires for phonegap / apache cordova ?. This tutorial explains you how to setup phonegap / apache cordova environment with CLI mode

Required Softwares :

NOTE : Make Sure your environment when you’re downloading your softwares such as platform (windows / linux / mac ) & 32-bit (x86) / 64-bit (x64)

Phonegap Installation Step by Step:

Path Configuration : Right Click My Computer -> Click Properties -> Click Advanced System Settings  -> Click Environment Variable in Advanced Tab -> Double Click Path -> Add Semicolon (;) -> Copy Paste your Path

STEP 1: JAVA Installation for Phonegap

  • Install JDK & JRE on your Machine by giving Next -> Next
  • Configure your JDK & JRE Path for jdk & jre bin folder
  • Example Path : C:/program files/java/jdk/bin & C:/program files/java/jre/bin

Verify your Java installation : Close & Re-open your Command Prompt & Type java & javac

STEP 2 : INSTALL Node.js

  • Install Node Js by Giving Next -> Next
  • Configure your Path,if required

Verify your Node.js Installation : Close & Re-open your Command Prompt & Type npm

STEP 3: Configure Android SDK

  • Extract your compressed downloaded file
  • Configure Your Android SDK Path for platform-tools & tools folder
  • Example Path : C:/android/sdk/platform-tools/ & android/sdk/tools

Verify your Android SDK Installation : Close & Re-open your Command Prompt & Type adb

STEP 4 : Configure Your Apache Ant

  • Extract your compressed downloaded file
  • Configure your Apache Ant Path for bin folder
  • Example Path : C:/apache_ant/bin

Verify your Apache Ant Installation : Close & Re-open your Command Prompt & Type ant

STEP 5 : Installing Phonegap / Apache Cordova

After installing the softwares, you’ve to install phonegap / apache cordova on your machine.

  • Open your Command Prompt & type
npm install -g cordova

if you want to install pervious versions type

npm install -g cordova@4.2.0

That’s it.

Read this article for Creating your first phonegap project

Did you find apk for android? You can find new Free Android Games and apps.
  • Amol

    Hi Sundara,

    In step 4, when I type “ant” in Command Prompt it gives me following error message.

    Buildfile: build.xml does not exist!

    Build failed

    I am running Apache Ant in command prompt as follows where it is located,

    C:Apache_antbin>ant

    Can you please guide.

    • This is expected output

      • Amol

        Hi Sundara,

        Thank you for your quick response !

        In step 5, when I enter below command in command prompt,

        “npm install -g cordova”

        It gives me following message shown in the image,

        • please try again !! by uninstall npm & reinstall

          • Amol

            As per your suggestion I uninstalled npm and reinstalled, but it stopped with same message.
            I then uninstalled every thing and again did the complete setup but still it did not proceed.

            I also monitored internet connection.

            Please advise.

  • Amol

    Hi Sundara,

    Thank you for your quick response !

    In step 5, when I enter below command in command prompt,

    “npm install -g cordova”

    It gives me following message shown in the below image,

  • Varun

    You could really make it a little more simpler like what is variable name and all. I already have netbeans that shows jdk and jre in my program files. And what variable names please ?

  • Ashutosh

    Could you please help me on the Android SDK download step? As per the above mentioned steps:

    Android SDK (standalone version), No need of android Studio

    Download Standalone Version of Android SDK

    The mentioned URL is navigating to Android Studio link and it is mentioned to download only the standalone version (No need of Android Studio). I am having an start up and my developer’s two days input has been stuck due to it. Eagerly waiting for your response.

    Just to let you know, we tried to install the Android SDK from the archive SDKs and the adb command is not working.

  • Jovylle Bermudez (Twero)

    Phonegap Installation Step by Step:

    Path Configuration : Right Click My Computer -> Click Properties -> Click Advanced System Settings -> Click Environment Variable in Advanced Tab -> Double Click Path -> Add Semicolon (;) -> Copy Paste your Path

    I didnt get this sorry

    i saw multiple path
    and what shoud i copy
    whos path should i copy?
    Thank you for doing this tutorial

MyMail WordPress Plugin free
Save $50 USD on Ionic Firebase Chat Source CodeEXPLORE