Required tool Software: Java jdk1.7 above, Eclipse, ADT, Android SDK, etc.
First, install the JDK
- Http://www.oracle.com/technetwork/java/javase/downloads/index.html (no JDK can go to download, Baidu search also a lot)
- After installing the JDK, you need to set some environment variables
Win7 Computer Right-click Properties, select Advanced System settings, select Environment variables in the pop-up box, and then create a new edit in system variables:
Variable name: java_home
Variable Value: C:\Program files\java\jdk1.7.0_03 (where the JDK is installed)
Variable name: Path (already present, may not be at the end; No.)
Variable value: C:\ProgramFiles\Java\jdk1.7.0_03\bin; C:\ProgramFiles\Java\jre7\bin; (That is, the Bin folder for JDK and JRE)
Variable name: CLASSPATH
Variable value:.; %java_home%lib;%java_home%lib\tools.jar
- Test the JDK (detects if the JDK was installed successfully)
In the window command line prompt (WINDOW+R) input: Java, Javac, java-version, to see information about your JDK installation. The installation is successful if the appropriate information is displayed, otherwise it will be reinstalled.
Ii. Downloading and installing eclipse
- Required versions of Eclipse are: "Eclipse standard", "Eclipse IDE for Java EE developers", "Eclipse IDE for Java Developers"
- Http://www.eclipse.org/downloads/(Can not go to the official website to download, looking for the version of the line)
- Eclipse download and unzip.
Iii. Downloading and installing ADT
1. Use the connection to download
Open Eclipse---> Help---> Install New sofe
Then click "Add" to fill in the name: ADT, enter the link ("Http://dl.google.com/android/ADT-22.6.3.zip"), then click "OK", "Next"
2 using the downloaded offline package
Open Eclipse---> Help---> Install New sofe
Then click "Add" to fill in the name: ADT, click "Archive" to browse the downloaded ADT package, then click "OK", "Next"
Iv. downloading and installing the SDK
To download the extract, click Run SDK and download the latest version number of the Android SDK tools, Android SDK Platform-tools, Android SDK Build-tools in Tools. Android SDK build-tools Download the latest one is ready. Next download Android version, latest Android L (API 20) and Android 4.4W (API 20) I don't know the difference between these two versions, so download them all. Next download now the highest share of the version number: 4.0, 4.1.X, 4.2.X, 2.3. X (PS: Because I do not do Android TV and glass, so do not download). Extras Download: These are all support packages, such as: Inter x86 emulator can speed up the launch of the Android virtual device, some Google Play services I do not need to go down. "The download process is long, you need to wait patiently, the next half of the day, the entire folder can go to more than 20 g"
If you cannot load the download, you can try this, open the SDK, click "Tools"---> "options", set the HTTP proxy Server:mirrors.opencas.cn and HTTP proxy port:80, in the " Others "SELECT 1 and 3 in single
Iv. Configuring the SDK
Open Eclipse, click "Window"---> "preferences", open "Android", click Browser, select the location of your SDK, then "Apply"---> "OK"
V. Creating an AVD
Open "Android virtual Devices Manager" in the Eclipse navigation bar, click "Create", enter the relevant information, then click "OK" to launch, you can see the Android VM.
Finish.
"For more details, please refer to Baidu experience"
About building an Android development environment