Building Android Apps with IONIC Framework

Building Android apps with IONIC Framework | In this tutorial we will build android with ionic. To get started you can install Ionic Windows in my previous tutorial here. It’s very easy to build your Ionic into an Android application but to build it into IOS I won’t discuss it here because it requires Xcode.

Download JDK
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Download Android Studio and SKD Tools
https://developer.android.com/studio/index.html?hl=en

Creating CRUD with Ionic and MySQL – Muhamad Yusup Hamdani – 1

You can see I’ve downloaded the JDK and Android Studio.

Install the downloaded JDK.
Creating CRUD with Ionic and MySQL – Muhamad Yusup Hamdani – 2

Follow each step until it’s finished.

Now we will add the JDK that was installed earlier to the system variables.
Not a search for the keyword “env” as shown below

Creating CRUD with Ionic and MySQL – Muhamad Yusup Hamdani – 4

Then select the Advanced tab -> Environment Variables…

Creating CRUD with Ionic and MySQL – Muhamad Yusup Hamdani – 5

1. Click New… –> #2. Browse to your JDK location… –> #3. Then click OK.

Creating CRUD with Ionic and MySQL – Muhamad Yusup Hamdani – 6

Install Android Studio.
Creating CRUD with Ionic and MySQL – Muhamad Yusup Hamdani – 3

Follow each step until it’s finished.

Open Command Prompt to add Android platform
Creating CRUD with Ionic and MySQL – Muhamad Yusup Hamdani – 7

Ionic platform add android is used to tell ionic that we want to create an android platform. Press Enter and this requires an Internet connection.

If you have then there will be a new platforms folder in your ionic project.

Creating CRUD with Ionic and MySQL – Muhamad Yusup Hamdani – 8

Reopen Command prompt to build Android into apk. After we added the platform with the Command prompt in the previous step.
Creating CRUD with Ionic and MySQL – Muhamad Yusup Hamdani – 9

Wait for the build to complete and this requires a connection to the internet.

When it’s finished you can find an android application .apk that is ready to be installed here, then you can install it on your smartphone. F:ionicdefaultplatformsandroidbuildoutputsapk

Creating CRUD with Ionic and MySQL – Muhamad Yusup Hamdani – 10

In addition to the ionic build android, we can also build apk directly to the smartphone with ionic run android. In the next tutorial I will tell you how because on your smartphone, the Android debug mode must be activated first and USD debug.

Thank you greetings 😀