Android Environment Building Essentials

Source: Internet
Author: User

1.JDK environment variable Configuration

Add the bin path string (C:\Program files\java\jdk1.8.0\bin) of the JDK installation directory to the path variable of the environment variable.

Once configured, entering "java-version" at the command prompt will display JDK version information.

2.java_home environment variable Configuration

Add the JAVA_HOME environment variable and set the value to the JDK installation directory string (C:\Program files\java\jdk1.8.0).

If you do not configure Java_home, installing the Android SDK will not find the JDK.

3. The "Failed to install Intel HAXM" Prompt is reported during the installation of Android studio.

The view error log is displayed as "Thiscomputer meets the requirements for HAXM, but Intel virtualization technology (VT-X) are not turned on." HAXM cannot be installed until Vt-x is enabled."

WORKAROUND: Set the "Intel Virtual Technology" entry in the BIOS to "Enable", then save and reinstall. My computer This item is under "Advanced", "CPU Setup".

4.android_sdk_home environment variable Settings

Add the "android_sdk_home" environment variable and set the value to the installation path for the ANDROID SDK. (C:\USERS\ADMINISTRATOR\APPDATA\LOCAL\ANDROID\SDK)

5. Add the Android "Tools" and "Platform-tools" to the PATH environment variable.

(C:\Users\Administrator\AppData\Local\Android\sdk\platform-tools; C:\Users\Administrator\AppData\Local\Android\sdk\tools;)

After configuring the environment variables for Android, enter "ADB" at the command prompt to display the Android debug version information. You can also enter "Android-h" to display Android-related information.

Android Environment Building Essentials

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.