Android SDK installation Configuration

Source: Internet
Author: User

Installation currently requires Android Studio3.0 or later.

Android Studio requires Java development Kit [JDK] 1.8 (later versions are not supported). You can enter on the command line javac -version to view the JDK version you are currently installing. If the version is not required, you can download it on the official website. Or use the Package Manager to install (for example, choco install jdk8 or apt-get install default-jdk )

Android Studio contains the Android SDK and emulator required to run and test react native apps.

Unless otherwise noted, please do not change the options during the installation process. For example, Android Studio is installed by default Android Support Repository , and this is required for react native (otherwise, the react-native run-android will not be reported APPCOMPAT-V7 packet can not find the error).

    • Make sure all the installations are checked, especially the Android SDK and Android Device Emulator .

    • After the initial installation is complete, select the Custom installation:

    • Check for installed components, especially emulators and HAXM acceleration drivers.

    • After the installation is complete, select it in the Welcome screen of Android Studio Configure | SDK Manager .

    • In the SDK Platforms window, select Show Package Details , and then tick in,, Android 6.0 (Marshmallow) Google APIs Android SDK Platform 23 Intel x86 Atom System Image , Intel x86 Atom_64 System Image and Google APIs Intel x86 Atom_64 System Image .

    • In the SDK Tools window, select and Show Package Details then tick in Android SDK Build Tools Android SDK Build-Tools 23.0.1 (must contain this version.) Of course, if other plugins need other versions, you can install more than one version at a time. Then check the bottom of the box Android Support Repository .

Android_home Environment variables

Make sure that the ANDROID_HOME environment variables correctly point to the path of the Android SDK that you installed.

Open---- 控制面板 系统和安全 系统 高级系统设置 高级 环境变量新建

The specific path may be inconsistent, please confirm it yourself.

You need to close the existing Command prompt window and reopen it so that the new environment variable will take effect.

Recommended Tools for installation

Gradle Daemon

Opening Gradle daemon can greatly increase the speed of incremental compilation of Java code.

(if not exist "%USERPROFILE%/.gradle" mkdir "%USERPROFILE%/.gradle") && (echo org.gradle.daemon=true >> "%USERPROFILE%/.gradle/gradle.properties")

Add the Tools directory of the Android SDK to PATHVariables in

You can add the tools and Platform-tools directories of the Android SDK to PATH variables to run some Android tools in the terminal, for example, android avd or so on adb logcat .

Open 控制面板 and 系统和安全 系统 高级系统设置 高级 环境变量 PATH Double-click to edit

Note that your specific path may be different from

Optional installation items git

You can use chocolatey to install git :

install git

Alternatively, you can download git for Windows directly. Note that "Run Git from Windows command Prompt" is checked during the installation process to git add commands to PATH environment variables.

Android SDK installation Configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.