1: Download and Install JavaDownload and install a recent release of the Java SDK for your computer.
You should be able to open a new instance of
javawithout problems. If not (you made sure to open a new cmd window, right?), then open your system environment variables, and add to or create a new user variable called
PATHwith the full path to the
binfolder of the new Java SDK installation.
2: Download Apache AntApache Ant is needed by Android and Cordova for building projects.
Download and extract this zip file somewhere on your computer: http://mirror.tcpdiag.net/apache//ant/binaries/apache-ant-1.9.4-bin.zip
Add the full path to the
bin/folder to the end of your PATH environment variable.
3: Download the Android SDKGo and download the Android SDK:
3: Add Android to PATHWe need to tell Windows where our Android SDK lives.
Open up your environment variables setting and add the full path to both the
adt-bundle/sdk/platform-tools/folder and the
adt-bundle/sdk/tools/folder to the end of your PATH variable:
You should be able to open a new
cmd.exeinstance, and run
androidto see the list of android targets you can install.
Go ahead and install version 19 for now, which will give us support for developing for Android 4.4 (target older versions for older Androids).
4: Install or update Node.jsDownload the most recent version of Node.js. If you are running an older version of Node, make sure to update it because older versions had issues with npm.
As with the other commands,
nodejsshould now function in
cmd.exebut just to be careful, add the full path to the
binfolder in Node to your
PATH, which will look something like
5: Install CordovaOpen a new
cmd.exewindow, and run:
$ npm install -g cordova
6: Install IonicIn the same
$ npm install -g ionic
7: Start a projectNow that everything is installed, we can finally create an Ionic project! Go ahead and run:
$ ionic start myapp $ ionic platform add android
plugman(a Cordova issue), you’ll need to manually create the folder
$USER\AppData\Local\Temp\plugman\gitand run it again.
8: Build, test, deploy!Everything should be working now. To test it, try doing
ionic build androidand then connect a device or Genymotion instance and run
ionic run android
Please let us know if you encounter any issues and we will revise this tutorial.