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