Copyright Notice: This article from Fat Meow ~ blog, reprint must indicate the source.
Reprint Please specify source: http://www.cnblogs.com/by-dream/p/5482778.html
with Android Studio launch, Google is gradually abandoning the ADT on eclipse, and some of the official documents for the new test framework are also recommended Android Studio, so follow-up my explanation may also be in Android Studio, so this section is about setting up the environment.
Google's Official document has given the building method: http://developer.android.com/intl/zh-cn/sdk/installing/index.html
Let me write some of my construction methods:
1. Download Java SE
Address: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
It is important to note that the JDK version cannot be less than 1.8 (I am downloading the x64 version here)
After the download is complete, install the application.
2, configure environment variables.
System variables → new java_home variable
Variable value fill in the JDK installation directory (I am D:\Program Files (x86) \java\jdk1.8.0_91)
System variables → find Path variable → edit
Enter%java_home%\bin;%java_home%\jre\bin at the end of the variable value;
System variables → new CLASSPATH variable
Variable values are filled in.; %java_home%\lib;%java_home%\lib\tools.jar (Note that there is a point in the front)
We verify that the configuration is complete:
OK, no problem.
3. Download Android Studio
Address: http://developer.android.com/intl/zh-cn/sdk/index.html
After downloading, directly double-click Install. Some of the installation process:
After finish, go to the following screen and select one of the following:
Wait:
This time there may be a step to set up an agent to download the Android SDK
Click Setup Proxy to set up the agent
Input: "web-proxyhk.oa.com " "8080", click OK
Click Next
Select Standard:
Click Finish to download
And then there's a long wait
"Android Test" "essay" Android Studio Environment build