
In the Android Studio, open the SDK Manager ( Tools > SDK Manager) and confirm that the following are installed for the targeted version of Android.: Please see the Android API Level Support to find the supported version based on the Cordova-Android versions.
#Android sdk install#
It is recommended to install the highest supported version of the SDK Platform and Build Tools based on the project's installed version of Cordova-Android. Opening Android Studio for the first time will guide you through the process of installing the Android SDK packages. Follow the instructions at the linked Android Developer site to get started.

Android Studioĭownload and install Android Studio. The project-level's version of Gradle is defined in the Cordova-Android's package and set based on what Android supports.

The system-level and project-level version of Gradle may not and does not need to match. The system's Gradle binary will create the Gradle Wrapper file that declares and obtains the appropriate version of Gradle needed for building the Android application. Note: This is the system's Gradle version.
#Android sdk how to#
See Setting Environment Variables) on how to configure system environment variables. When installing on Windows, you need to add the path to the Gradle's binary directory to your path environment variable. GradleĪs of Cordova-Android 6.4.0, Gradle is required to be installed. Alternatively as of cordova-android 10.0.0 or greater, CORDOVA_JAVA_HOME can be set in place of JAVA_HOME, allowing a JDK install to be used specifically for Cordova development. See the Setting Environment Variables section on how to set up environment variables. The JAVA_HOME environment variable must be set according to your JDK installation path. If you are using any version below cordova-android 10.0.0, install the Java Development Kit (JDK) 8. If you are using cordova-android 10.0.0 or greater, install the Java Development Kit (JDK) 11.

The Required Software & Tools Java Development Kit (JDK) System RequirementsĬordova-Android requires the Android SDK, which can be installed on either macOS, Linux, or Windows.įor the base system requirements, see the Android Studio's System Requirements. To determine what version of the Cordova-Android package is installed in your Cordova project, run the command cordova platform ls in your project's root directory.Īs a general rule, Android versions become unsupported by Cordova as they dip below 5% on Google's distribution dashboard. Note: The cordova-android versions listed above are not for the Cordova CLI. The supported Android API Levels (versions of Android) corresponding with the Cordova-Android released versions are listed in the table below: cordova-android Version You will need to install and set up the requirements regardless of whether you want to use the Android-specific command-line tools or Cordova CLI commands.
#Android sdk for android#
This guide will help set up your development environment for building Cordova apps for Android devices and optionally use Android-specific command-line tools within your development workflow.
