Table of Contents

How to install Ionic for the Android platform?

Hope you understand

This problems outside the AppBuilder topic are do not cover in our support. We only help fellow as programmers, We only help personally not appbuilder support

Software

  1. Download the NodeJS according to your os: https://nodejs.org/en/download/ and install it
  2. Download JDK8 from this link: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html and install it
  3. Download the Gradle: https://gradle.org/install/ and unzip it
  4. Download the Android Studio: https://developer.android.com/studio/ and install and update it

Windows User

Setting Environment variables

  1. For Window user, go to Control Panel -» System -» Advanced System Setting -» Tab Advance -» Environment Variables Button, and edit environ for PATH according SDK Build-Tools path

  2. Then click New add new environ for ANDROID_SDK_ROOT and write the variable value according Android SDK path

  3. And click New add new environ for JAVA_HOME and write the variable value according Java SDK path

Update Your Android Studio Configuration

  1. Run your Android Studio -» Welcome Page -» Click Configure -» SDK Manager -» Appearance & Bahavior -» System Setting -» Android SDK -» Select Android SDK Location
  2. Click File -» Choose Your Project -» Add No Activity
  3. Click File -» Setting -» Appearance & Bahavior -» Build, Execution, Deployment -» Gradle, Set Default Gradle Wrapper or Use Local Gradle distribution
  4. Then Click Build -» Build Bundle(s) / APK(s)
Make sure your Android Studio is correct and can create APK File

Install Ionic-CLI

  1. Connect your internet, then run Node.js command prompt or using terminal/bash

  2. Install Ionic CLI globally with npm, type this command:

    npm install -g @ionic/cli

Test Tools

Make sure nothing comes out: xxxx is not recognized as an internal or external command when running the command below:

  1. Run Node.js command prompt or Terminal, then run this command:
  2. Testing gradle

    gradle --v
  3. Testing Android SDK

    sdkmanager --version
  4. Testing Android SDK

    sdkmanager --version
  5. Testing keytool

    keytool
  6. Testing jarsigner

    jarsigner

Test create an APK File using Ionic-CLI

Please run the following command to create an blank apk file

  1. Create new an ionic project

    ionic start "Test App" blank --project-id="test-app" --type=angular
  2. Go to the folder you just created

    cd test-app
  3. Added the android platform to the project

    ionic cordova platform add android@latest
  4. And lastly create APK File

    ionic cordova build android
Don't use the imabuilder until you have successfully created the apk

Last edit: 2020-09-20 12:01:20

Comment

For any question about products, please contact email support is: info@ihsana.com and info@ihsana.net

Search

img