Android Development Environment Setup (Windows)

Source: Internet
Author: User

First step, install the JDK;

    1. Download the JDK on the Java Official website (http://www.Oracle.com/technetwork/java/javase/downloads/index.html) (note download JDK, not JRE)
    2. Download the JDK version of your system
    3. Install after download
    4. Edit 3 Environment variables: 1. Variable name: java_home, Variable value: C:\Program Files (x86) \java\jdk1.8.0_121 (JDK installation directory); 2. Variable name: CLASSPATH, Variable value:.; %java_home%\lib;%java_home%\lib\tools.jar;3. Variable name: Path, variable value:%java_home%\bin;

Step two, install eclipse;

    1. The Eclipse website (http://www.eclipse.org/downloads/eclipse-packages/) downloads Eclipse, choosing eclipseide for Java EE developers, Choose a 32-bit or 64-bit installation package according to your system
    2. Eclipse download is a zip compressed package, directly extracted to the folder you want to be able to use, no need to install, double-click Eclipse.exe Open, if the error, re-check environment variables, the problem is the JDK environment variable.

Third step, download and install ANDROIDSDK;

    1. If the first two steps are passed in this step. We also need to download the Android SDK (software development Kit) and install the ADT plugin on Eclipse.
    2. First, download the Android SDK tools, first open the http://www.androiddevtools.cn/, find the SDK tools, select an up-to-date version, note that there are EXE and zip two files to download, EXE is a setup program , download it and need to double-click Install yourself. It is recommended to download the zip archive, download it and unzip it directly to the path you want to install on Android. The extracted file directories are as follows:

3. Then double-click "SDK Manager.exe" to launch the SDK Manager:

4. Select the Tools file inside the Android SDK Tools,android SDK Platform-tools and Android Sdkbuild-tools (these three must be selected, other casual); API selection, select the latest version, Because Android API excuses are backwards compatible, you can choose only one (do not choose too much, to avoid the installation time too long); Extra SELECT: You can install only three, that is, Android support Repository, Android Supportlibrary and Google USB Driver (conditional can be installed all)

5 After starting SDK manager, select Tools-option

(Because of "wall", download may be wrong, so to set the domestic download mirror address)

At such times, we can download the installation through a domestic mirror server with the Android SDK, here are a few recommended:

1, CAS Open Source Association Mirror station Address:

ipv4/ipv6:http://mirrors.opencas.ac.cn Port: 80

2. Beijing University mirror server address:

ipv4:http://ubuntu.buct.edu.cn/Port: 80

ipv4:http://ubuntu.buct.cn/Port: 80

ipv6:http://ubuntu.buct6.edu.cn/Port: 80

3, Dalian Neusoft Institute of Information Mirror server address:

http://mirrors.neusoft.edu.cn Port: 80

Fill in for example:

HTTP Proxy Server:mirrors.opencas.ac.cn

HTTP Proxy port:80

5, waiting ... After a long time waiting to find the following not installed into installed,

6. Configure the ANDROID environment variable: 1. Variable name: android_sdk_home, Variable Value: D:\android-sdk-windows (Path of Android installation); 2. Variable name: path, variable value:% android_sdk_ home%\platform-tools;% Android_sdk_home%\tools;

7. Test whether the Android development environment is installed successfully: Open the cmd window, enter ADB version, display the Android Debug bridge versions, indicating the installation is successful. If an error occurs, the environment variable is configured incorrectly.

Fourth Step

Android Development Environment Setup (Windows)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.