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. Go to Control Panel > System > Advanced System Setting
  2. Click Tab Advance > Environment Variables Button
  3. Add new environ for JAVA_HOME and ANDROID_SDK_ROOT for latest cordova (ANDROID_HOME for old cordova)
  4. And also edit environ for PATH

    Don't remove old value, just to append text with separator.
    C:\Program Files\Java\jdk1.8.0_65\bin\;
    D:\build-apk\androidsdk\;D:\build-apk\androidsdk\platform-tools\;
    D:\build-apk\androidsdk\platform-tools\build-tools\29.0.3\;
    

Especially for AppBuilder users, you can manage it all easily like this video:


The software can be downloaded here: nodejs-for-cordova.zip


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 Yout 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)

Install Ionic CLI

  1. Connect your internet, then run Node.js command prompt or using terminal/bash
  2. Install Ionic CLI globally with npm

    npm install -g @ionic/cli

Testing

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

  1. Testing gradle

    gradle --v
  2. Testing Android SDK

    sdkmanager --version
  3. Testing Android SDK

    sdkmanager --version
  4. Testing keytool

    keytool
  5. Testing jarsigner

    jarsigner

Please run the following command to create an blank apk

ionic start "Test App" blank --project-id="test-app" --type=angular
cd test-app
ionic cordova platform add android@latest
ionic cordova build android

Last edit: 2020-05-25 09:15:13

Comment

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

Search

img