PREREQUISITES
Make sure following prerequisites are mate before running ionic application on Android Emulator
- Latest Java Runtime Environment and JDK Installed
- Android SDK has been installed with necessary API version and platform tools
- Apache Ants Must be installed in order to run Ionic Application on Android Emulator (ant.apache.org/bindownload.cgi)
JAVA Config
Installation Location: C:\Program Files\Java\jdk1.7.0.0_51
Add following System Variable
JAVA_HOME ==> C:\Program Files\Java\jdk1.7.0.0_51
Android SDK
Installation Location: D:\Android\android-sdk-windows
Add following System Variables
ANDROID_HOME ==> D:\Android\android-sdk-windows
Apache Ant
Installation Location: D:\Apache\Tools\apache-ant
Add following System Variable
ANT_HOME ==> D:\Apache\Tools\apache-ant
PATH Configurations
Add following paths to PATH system variables
;%PATH%\tools;%ANT_HOME%\bin;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tool
Step 1 : Try to run Ionic In Android Emulator (ionic build android)
Open NodeJs Command Prompt and go to the ionic project directory
type following:
ionic build android
Step 2: Adding platform support
run following command to add android platform support for ionic
ionic platform add android
Step 3: Run Ionic Application in Emulator
Open nodejs command prompt and run following command:
ionic build android
you will get build successful like above screenshot
See it in Action
run following command to see it in action
ionic emulate android
Easy step by step guidance to setup Ionic framework on Windows. Learners can easily understood about Ionic from Installation to implementing the Ionic project.
ReplyDeleteHave a questions about Ionic? Visit - Way2Smile to get started.