Note: The directories above are generally located in the Android SDK ROOT. This is required for the apksigner and zipalign tools. It is also recommended to update the PATH environment variable to include the following directories. ANDROID_SDK_ROOT - The environment variable to the location of your Android SDK installation.JAVA_HOME - The environment variable to the location of your JDK installation.If the missing variables fail to resolve, they must be set manually. If the environment variables are missing, the CLI will attempt to resolve the variable temporarily. Setting environment variablesĬordova's CLI requires specific environment variables so it can function correctly. See Android's documentation on how to Update your tools with the SDK Manager for more details. Open the SDK Manager ( Tools > SDK Manager).In Android Studio 3.6 or later, the obsolete Android SDK Tools will need to be intalled. Android SDK Build-Tools under the SDK Tools tab, for the targeted version.Android's SDK Platform for your targeted API Level.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. 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. 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. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |