Ionic is a hybrid mobile app development framework using which we can create mobile applications which can be build for different platforms like iOS, android, windows etc from the same code base. Ionic is built on top of Apache Cordova and AngularJS which means we can program Ionic apps in familiar web technologies like HTML-5, CSS, SASS etc
In this tutorial, we're going to build a Hello World Ionic android app using the Ionic framework. We'll highlight all the steps you need to perform to build and run your app for android.
Please ensure that following are installed on your system for Ionic Development for Android ::
If you're on Linux, you can use commands as given below. But ensure that the values for the variables
corresponds to the the actual locations of the tools in your machine
export ANDROID_HOME=/Development/android-sdk/
To update your PATH, add a line resembling the following (substitute the paths with your local Android
SDK installation's location):
export PATH=${PATH}:/Development/android-sdk/platform-tools:/Development/android-sdk/tools
Reload your terminal to see this change reflected or run the following command:
$ source ~/.bash_profile
npm install -g cordova ionic
ionic start helloworld blank
helloworld
.
cd helloworld
ionic serve
ionic platform add android
ionic build android