From a51edb772546f9db09e78fe424e70c305b5ceb38 Mon Sep 17 00:00:00 2001
From: Lars Mikkelsen Cordova is not compatible with the latest version of Java. You must install JDK8 to build Android apps with Cordova. For
+
+
+
+
+
+
+
+ Features
+
+
+
+
+
+
+
+
+ Maintainer
+
+ OSS Community
+ Ionic
+
+
+
+ Regular Release Cycles & Updates
+
+ No
+
+
+
+
+ Support SLA & Ticketing System
+
+ No
+
+
+
+
+ Advisory & Support
+
+ No
+
+
+
+
+ Security & Bug fixes
+
+ OSS Community
+
+
+
+
+ Implementation Guidance
+
+ No
+
+
+
+
+ Guaranteed SLA
+
+ No
+
+
+
+
+ Native Core
+
+ No
+
+
+
+
+
+
+ Contact Us
+
+
+
+## Gradle
+
+Gradle is the build tool used in Android apps and must be installed separately. See the install page for details.
+
+## Android Studio
+
+Android Studio is the IDE for creating native Android apps. It includes the Android SDK, which will need to be configured for use in the command line.
+
+Android Studio is also used to [create Android virtual devices](/docs/installation/android#creating-an-android-virtual-device), which are required for the Android emulator. Ionic apps can also be [launched to a device](/docs/installation/android#set-up-an-android-device).
+
+### Installing Android Studio
+
+Download Android Studio from the Android website. More detailed installation instructions can be found in the User Guide.
+
+### Installing the Android SDK
+
+Once installed, open Android Studio. The IDE should detect that the Android SDK needs to be installed. In the **SDK Components Setup** screen, finish installing the SDK. Keep note of the **Android SDK Location**.
+
+
+
+By default, the latest stable SDK Platform is installed, which includes a collection of packages required to target that version of Android.
+
+
+ 📝 Note: To install system images and other minor SDK platform packages, you may need to ensure Show Package Details is checked at the bottom of the SDK Manager.
+
+
+For future reference, the Android SDK can be managed with Android Studio in the **Configure** » **SDK Manager** menu of the Android Studio welcome screen or **Tools** » **SDK Manager** inside Android projects.
+
+### Configuring Command Line Tools
+
+The Android SDK ships with useful command-line tools. Before they can be used, some environment variables must be set. The following instructions are for macOS and Linux. For Windows, check the documentation on setting and persisting environment variables in terminal sessions.
+
+In `~/.bashrc`, `~/.bash_profile`, or similar shell startup scripts, make the following modifications:
+
+1. Set the `ANDROID_SDK_ROOT` environment variable. This path should be the **Android SDK Location** used in the previous section.
+
+```shell
+ $ export ANDROID_SDK_ROOT=$HOME/Library/Android/sdk
+ ```
+
+1. Add the Android SDK command-line directories to `PATH`. Each directory corresponds to the category of <a href="https://developer.android.com/studio/command-line/" target="_blank">command-line tool</a>.
+
+ <command-line nobuttons>
+ <command-output># avdmanager, sdkmanager</command-output>
+ <command-prompt>export PATH=$PATH:$ANDROID_SDK_ROOT/tools/bin</command-prompt>
+ <br />
+ <command-output># adb, logcat</command-output>
+ <command-prompt>export PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools</command-prompt>
+ <br />
+ <command-output># emulator</command-output>
+ <command-prompt>export PATH=$PATH:$ANDROID_SDK_ROOT/emulator</command-prompt>
+ </command-line>
+
+
+
+
+
+
+
+
+
+### Creating an Android Virtual Device
+
+Android Virtual Devices (AVDs) are blueprints that the Android emulator uses to run the Android OS. The following documentation is a quick way to get the Android emulator set up. For more detailed instructions and information, see <a href="https://developer.android.com/studio/run/managing-avds" target="_blank">the Android documentation</a>.
+
+AVDs are managed with the AVD Manager. In the Android Studio welcome screen, click **Configure** » **AVD Manager**. The AVD Manager can also be opened inside Android projects in the **Tools** » **AVD Manager** menu.
+
+
+
+Click **Create Virtual Device** and select a suitable device definition. If unsure, choose **Pixel 2**. Then, select a suitable system image. If unsure, choose **Pie** (API 28) with Google Play services. See <a href="https://en.wikipedia.org/wiki/Android_version_history" target="_blank">Android version history</a> for information on Android versions.
+
+Once the AVD is created, launch the AVD into the Android emulator. Keeping the emulator running is the best way to ensure detection while developing Ionic apps for Android.
+
+
+
+apksigner and zipalign, $ANDROID_SDK_ROOT/build-tools must also be added to PATH.
+
+adb documentation for troubleshooting and detailed information.
\ No newline at end of file
From 3052399332a41f7e8eb99c12b3615877bc4cbc1f Mon Sep 17 00:00:00 2001
From: Lars Mikkelsen