Ionic 2/Ionic 3 - Adding Cordova Android Platform
In previous tutorial we created our first Ionic 2/3 project .Ionic apps are cross platform which mean they can be used to target Android ,iOS and Windows phone (UWP) devices but before you can actually target a specific device platform you need to add the platform to your Ionic project so lets cover how to do that for Android .
First ,before you can add an Android platform to your Ionic 2/3 project you need to have some requirements installed on your development machine :
First install Java on your system if its not installed
You can verify if Java installed on your system by running
If the command goes unrecognized then head over to Java official website and download Java then install it .
Setup JAVA_HOME environment variable to point to your Java installation folder .
Next install the Android SDK from Android studio official website (You can install the whole Android studio or just the Android SDK)
Setup the ANDROID_HOME environment variable to point tou your SDK folder .
Finally you need to install Cordova if it's not yet installed .
npm install -g cordova
These are all the requirements you need to have before you can add an Android platform to your project .
Now lets add an android platform to our project .
Navigate to our previously created project then run
ionic platform add android (If using Ionic CLI < v3)
ionic cordova platform add android (If using Ionic CLI >= v3 )
That's it you have now added an android platform to your project which means you can build and run your app on Android devices
ionic run android -l
This command will run your app in your Android device with live reload enabled which means every time you make changes to your source code it gets reloaed on the device and the app will be refreshed / restarted which is a nice feature if you are developing and testing your app in a real device .
We have covered how to add an Android platform to Ionic 2/3 projects and all the requirements we need to have installed before we can do that .
- Django 2 Ajax CRUD with Python 3.7 and jQuery
- PHP 7 Tutorial with MySQL: CRUD REST API & JWT
- Django 2 CRUD Tutorial: Generic Class-Based Views
- Angular 6|7 Tutorial — CRUD & Python REST API
- Python 3.7 Matplotlib — Data Visualization Tutorial
- Python 3.7 Data Classes — Tutorial by Example
- Ember 3 Tutorial: Building your First Application
- Django Authentication — Login, Logout and Password Change/Reset
- Ubuntu 18.04: Install Python 3.7 | 3.6, pip and venv
- Vertical Center in Bootstrap 4
- Angular 6|7 ngIf by Example
- Angular 6|7 ngFor Example
- JWT Auth with Vue, Vuex and Vue Router — Axios & Guards
- Node Express JWT Authentication — jsonwebtoken and bcryptjs
- Python Django JWT — djangorestframework-jwt Example
- Adonis Tutorial — CRUD REST API and JWT Authentication
- Adonis Tutorial — JWT Authentication
- Installing PostgreSQL on Ubuntu 18.04
- PostgreSQL & PostGIS Tutorial — Creating a Spatial Database
- Installing GDAL 2+ on Windows 7 & Windows 10
- Swift Vapor Tutorial — Creating a REST API
- es6 template strings or literals
- Django Form Example—Bootstrap 4 UI via django-crispy-forms
- Django TemplateView GET|POST Example — URLs, as_view and get_context_data
- CSS Grid Layout Tutorial—Styling a Django Template
- Vuex Tutorial
- Redux Tutorial
- Angular 7|6 with PHP and MySQL Example & Tutorial
- Ethereum Dapps with Truffle,Ganache, Metamask, OppenZippelin and React
- Angular 7|6 In-Memory Web API Tutorial | CRUD Example
- Using Vue.js in WordPress
- Learn Sails.js Tutorial 
- Using Vue.js in PHP Tutorial
- Angular 7|6 Material Data-Table Tutorial & Example