Set up the Android Development Environment (updated to 2015/3) in Win7 and win7android

Source: Internet
Author: User
Tags android sdk manager

Set up the Android Development Environment (updated to 2015/3) in Win7 and win7android

Build the Android development environment in Win7 (updated to 2015/3)

-- Install and configure JDK + Eclipse + Android SDK + ADT

The establishment of the Android development environment is not complex, that is, the poor resources. This article summarizes the establishment of the Android Development Environment Based on JDK + Eclipse + SDK + ADT in the current win7 environment.

 

The URL of the resource used in this article is as follows:

JDK: Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html (jdk-8u40-windows-x64.exe)

Eclipse: Http://www.eclipse.org/downloads/ (Eclipse IDEfor Java Developers)

AndroidSDK: Http://dl.google.com/android/android-sdk_r23.0.2-windows.zip

Android-sdk_r23.0.2-windows)

ADT: Http://dl.google.com/android/ADT-23.0.0.zip (ADT-23.0.0)

PS.If you can't access google's Android developer website, you can take a look at this article: http://www.apkbus.com/forum.php? Mod = viewthread & tid = 174440, find the corresponding URL to download to the corresponding resource.

 

I. JDK

Download jdk(jdk-8u40-windows-x64.exe) in 1 ).

Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

2. Install all components in the default path C: \ Program Files \ Java.

3. configure system environment variables:

Open: computer-properties-advanced system settings-environment variables. in the lower part of the dialog box, add the following two variables:

Variable name: JAVA_HOME

Variable value: C: \ Program Files \ Java \ jdk1.8.0 _ 40

Variable name: CLASSPATH

Variable value:.; % JAVA_HOME % \ lib \ tools. jar; % JAVA_HOME % \ lib \ dt. jar

Then, modify the following variables:

Variable name: Path

Variable value: Add "% JAVA_HOME % \ bin;" before the original variable value

Now, run the java-version command in the ms-dos window. The following result shows that JDK installation and configuration are complete.

Ii. Eclipse

Method 1:

1. Download Eclipse (Eclipse IDEfor Java Developers ).

Http://www.eclipse.org/downloads/

2. decompress the package to the directory (which can be specified according to your habits) C: \ Program Files \ Java \ without installation.

3. Run the Program C: \ Program Files \ Java \ eclipse \ eclipse.exe. In the displayed dialog box, configure the working directory:

Specify the working directory (which can be specified according to your habits) as follows:

Method 2:

1. Download adt bundle forwindows (no further Steps 3 and 4 are required)

Http://www.android-doc.com/sdk/index.html

Or https://dl.google.com/android/adt/adt-bundle-windows-x86_64-20140624.zip

2. decompress the package to the directory (which can be specified according to your habits) E: \ Java \ without installation.

For beginners, you can download Android Developers.AThe ndroid development tool is very simple and practical. You do not need to download Eclipse again. In this package, an eclipse FOR android development tool is provided, directly decompress the package and obtain Eclipse for android development. However, this Eclipse can only be developed for android and cannot be developed for java.

PS. android developers is a website suitable for beginners to learn about android. It is recommended, especially for viewing and learning the android source code.

Iii. SDK

1. Download android-sdk_r23.0.2-windows

Http://dl.google.com/android/android-sdk_r23.0.2-windows.zip

2. decompress the package to the directory (which can be specified according to your habits) E: \ Java \ without installation.

Decompress the package to the F: \ Android folder.

3. Configure the system environment variables and add the absolute paths of tools in the Android SDK to the system PATH:

Open: computer-properties-advanced system settings-environment variables. in the lower part of the dialog box, modify the following variables:

Variable name: Path

Variable value: Add "E: \ android-sdk-windows \ tools;" before the original variable value

Here, E: \ android-sdk-windows \ tools is the tools directory of the Android SDK. Then, in the ms-dos window, the android-h command can be executed as follows, indicating that the AndroidSDK has been installed successfully.

Iv. ADT

1. Install ADTOpen Eclipse, select Help> SoftwareUpdates in the menu, go to the "AvailableSoftware" tab, click "Add", enter ADT in Name (as you like), and enter the following URL in Location: https://dl-ssl.google.com/android/eclipse:

After pending is successful, you will get:


PS. If pending fails, you can try the following two solutions.

Solution 1: Http://www.apkbus.com/forum.php? Mod = viewthread & tid = 174440.

Download ADTPlugin for Eclipse. for other commands, use Lacation to directly Archive.

Solution 2:Because the Chinese network is in harmony with the google server, you can force it to point to the Hosts. The following content is added: 74.125.237.1dl-ssl.google.com.

The specific operation method is as follows: Directory: c: \ windows \ system32 \ drivers \ etc find the hosts file, which is actually a plain text file. After opening it with notepad, you will: 74.125.237.1 Add the dl-ssl.google.com to the last line of the hosts file, save and close Hosts, and restart Eclipse.

 

Click Select All, and then Next...

Select I accept..., Finish, and Restart Now. Now the ADT installation is complete.

2. Configure ADTAfter you re-open Eclipse, the following window will pop up. You need to configure the Android SDK location, that is, the location where the downloaded SDK is released after decompression. If there is no reminder, you can set it by yourself: select Window-Preferences from The menu, open the dialog box, select Android on The left side, and the location of The Android SDK will be reminded. After configuration, select Window-Android SDK Manager in Eclipse to open SDK Manager.

Install various resource packages, as shown in.

3. Configure the Android simulator AVDIn Eclipse, select Window-Android Virtual Device Manager and open the following dialog box.

In the displayed dialog box, click Create. In the new window, select the Device of the simulator Device type, enter the simulator Name, select the SDK version Target and CPU of the simulator, and specify the SD card capacity of the simulator.

Continue to create a simulator Android-SDK-5.1 for SDK5.1, select Android5.1 and click Start. In the pop-up dialog box, click Launch to open the virtual machine.


By now, you can use Eclipse for Java programming and Android application development. Of course, in addition to using Eclipse for development, you can also use Android Studio for development. If you are interested in creating a development environment, you can log on to Androiddevelopers to view and download the latest AndroidStudio. url: http://www.androidcommunitydocs.com/sdk/installing/studio.html.





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.