To play Android Studio, you first need to solve the environmental problem, this way first of all say that the JDK environment configuration, for the new environment.
One:
1. First by right-clicking on the computer's properties to see your computer system type, my is Win10 64-bit environment, has been downloaded such as JDK installation package,
2.JDK installation, double-click installation, Basic is the next step, the period to note is the location of the installation (after the environment configuration to use), I used a notepad to record the JDK installation path, as shown in:
3.JDK installation Successful test, win+r input cmd Enter, then enter Java-version, as shown in follow JDK success.
Configuration of 4.JDK environment variables (right-click PC properties):
A. Add the Java_home system environment variable as shown (the variable value is the path to the JDK installation above to let the record):
B. Classpath path configuration as shown in:
Notice the point where the two arrows show a "." Dot ha.
C. Change the system face path variable, as shown in modify:
4.JDK environment variable is configured successfully, next will be high to look at the line, as shown in:
1: The environment variable is already configured.
2:high look under the line, I have a Java file on the desktop, the Javac file name represents the compilation through
3: Execute code, output results, prove the JDK environment configuration OK!
Java File contents:
Two:
Use of Android Studio:
Recently changed a new job, and then just have time, think of playing hot update instant Run, probably is to modify the button action to achieve the effect and modify the layout, immediately will take effect, do not need to recompile, to developers save a lot of time, according to the following settings, Run under the app, Then modify the XML or click on the inside of the effect, and then point Run,run next to a lightning sign, click on the phone in 3-5 seconds the app is up to date, as shown in:
1. Set the diagram in the tool:
2. Code modifications such as (XML code modification and click-to-Listen code modification):
3. Last click as shown, see Effect high (you can see the effect change):
Android Studio Usage and JDK environment configuration (WINDOW10 64-bit)