Win7 under Android development environment (Win7 64-bit)

Source: Internet
Author: User
Tags android sdk manager

Win7 Android Development Environment (updated in 2015/3), win7android

Win7 under Android development environment (updated 2015/3)

--JDK + Eclipse + Android SDK + ADT installation, configuration

Android development environment is not complex, is the resource is not good, this article for the current Win7 environment, based on the Jdk+eclipse+sdk+adt of the Android development environment building to summarize.

The URL to 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 site, you can read this article: http://www.apkbus.com/forum.php?mod=viewthread&tid= 174440, find the corresponding URL can be downloaded to the corresponding resources.

First, JDK

1. Download the JDK (Jdk-8u40-windows-x64.exe).

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

2, install to the default path C:\Program files\java\, the hard disk space is not tense, all components are installed.

3. Configure the system environment variables:

Open: Computer-Properties-Advanced system settings-environment variables, in the lower part of the dialog box, in System variables, 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;%java_home%\lib\tools.jar;%java_home%\lib\dt.jar

Then, modify the following variables:

Variable name: Path

Variable value: Will "%java_home%\bin;" Add before the value of the original variable

At this point, in the MS-DOS window execution command java-version, see the following results, the JDK installation, configuration is complete.

Second, Eclipse

Method One:

1. Download eclipse (Eclipse idefor Java developers).

http://www.eclipse.org/downloads/

2, unzip to the directory (can be specified according to their own custom) C:\Program files\java\ can, without installation.

3, run the program C:\Program Files\java\eclipse\eclipse.exe, pop up the following dialog box requirements to configure the working directory:

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

Method Two:

1. Download ADT Bundle Forwindows (no need to see steps three and four)

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

or Https://dl.google.com/android/adt/adt-bundle-windows-x86_64-20140624.zip.

2, unzip to the directory (can be specified according to their own custom) e:\ Java\, no installation required.

For beginners, you can download Android development tools on Androiddevelopers, very simple and practical, do not need to re-download eclipse, in this download package will bring an eclipse for Android development tool, After extracting it directly, eclipse will be able to develop Android, but the eclipse can only be developed for Android and not for Java development.

PS. Android developers is a very suitable for beginners to learn Android website, recommended to use, especially to view and learn Android source code.

Third, the SDK

1. Download Android-sdk_r23.0.2-windows

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

2, unzip to the directory (can be specified according to their own custom) e:\ Java\, no installation required.

Unzip the extract to the folder F:\Android

3. Configure the System environment variable to add the tools absolute path in the Android SDK to the system path:

Open: Computer-Properties-Advanced system settings-environment variables, in the lower part of the dialog box, in system variables, modify the following variables:

Variable name: Path

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

Where E:\android-sdk-windows\tools is the tools directory of the Android SDK, then the MS-DOS window is able to execute commands android–h as follows, stating ANDROIDSDK installation is complete.

Iv. ADT

1, install ADT, open Eclipse, select Help→softwareupdates in the menu, go to the tab "Availablesoftware", click "Add", enter the Name (according to your own habits) ADT, Location, fill out the following URL: Https://dl-ssl.google.com/android/eclipse, as follows:

After pending success, get:

PS. If the pending is unsuccessful, you can try the following two options.

Scenario One: http://www.apkbus.com/forum.php?mod=viewthread&tid=174440

Download Adtplugin for Eclipse, other ibid., Lacation Direct Archive.

Scenario two: Because the domestic network harmony dropped Google this server, can be forced to point to the next hosts, the following is the addition of content: 74.125.237.1dl-ssl.google.com.

How to do: directory: C:\windows\system32\drivers\etc found the Hosts file, is actually a plain text file, opened with Notepad, will: 74.125.237.1 dl-ssl.google.com Add to the last row of the Hosts file, save close hosts, and restart Eclipse.

Click Select All, then next ...

Select I accept ..., then finish, and finally restart now, so that ADT installation is complete.

2, configure ADT, after re-opening eclipse, the following window will pop up, you need to configure the Android SDK location, that is, the previous download of the SDK extracted after the release of the location. If you do not have a reminder, you can set it yourself: Select Menu window-preferences, open the dialog box, select Android on the left, will remind the location of the Android SDK. Once configured, you can select the menu in Eclipse Window-android SDK Manager to open SDK Manager.

Then install a variety of resource packs, you can choose according to the development needs, as shown in.

3. Configure the Android emulator AVD and select the menu window-android Virtual Device Manager in Eclipse to open the following dialog box.

In the dialog box that opens, click Create, select Simulator device type in the new window, fill in the emulator name name, select the emulator version target and CPU, specify the simulator SD card capacity.

Continue to create a simulator for SDK5.1 android-sdk-5.1, select Android5.1 and click Start, and click Launch in the popup dialog box to open the virtual machine.

To this, the normal use of Eclipse for Java program design, Android application development. Of course, in addition to using Eclipse for development, you can also use Android Studio to develop, interested in children's shoes self-study to build the development environment, details can be logged androiddevelopers view and download the latest androidstudio, URL:/http Www.androidcommunitydocs.com/sdk/installing/studio.html.

Win7 Android development environment build (Win7 64-bit)

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.