The Android development environment is built into the following four steps:
(1) Download the JDK and install
(2) Configuring the JDK environment variable
(3) Download and install Android Studio
(4) Configuring the Android Studio environment variable (executable does not execute)
First step: Download the JDK and install
Let's start with Oracle and pick the JDK that's right for your computer (I picked the window x64 jdk-8 version here)
Now let's look at the installation process
Install to C drive By default, we can click Change to the custom directory, here I choose to install to D:\Program files\java\jdk1.8.0_60\
Waiting for installation
During the installation process, you will be prompted to choose the JRE installation directory, the default is C drive, here we also changed to D:\Program files\java\jre1.8.0_60
Wait for the installation to complete.
Step Two: Configure the JDK environment variable
environment variable configuration, computer-Advanced system configuration
System variables-New, variable name fill java_home, variable value fill in your JDK installation directory, my is D:\Program files\java\jdk1.8.0_60
In the system variable find path Click to edit, add%java_home%\bin;%java_home%\jre\bin;
Tips: (1) The original path of the variable value at the end of the number, if not, enter the first, and then enter the above code
System variables-New-new, variable name fill in classpath, variable value fill in.; %java_home%\lib;%java_home%\lib\tools.jar (note that the front has a small dot)
Finally, we verify that the installation is successful, open the command line (win+r), enter the Javac, the following a large list of things on behalf of the OK
step three: Download and install android Studio
Android training materials preparation of Android development environment to build