Android Eclipse Installation Tutorial 2016.06.13 Edition

Source: Internet
Author: User
Tags windows x64 android sdk manager

The first and most critical step-modifying the Hosts file

Why is that the most critical step? Because of the next operation, we all need to connect to the Google network, that is, to connect to foreign sites. In general, foreign websites cannot be opened. Of course, you can use the generation ( harmony) software, such as self (harmony) by the door . However, after testing, Generation (X) software is actually not good, although it can be connected to the www.google.com, but for the things we want to download does not benefit, but will slow down the speed.

How to modify the hosts?

In Windows XP/7/8, the location of the hosts file is as follows:

Then, open the page: http://file2015.softweek.net/file/google/helper/googlehosts20160425.txt

Then CTRL + A, copy everything, and replace the contents of the Hosts file.

That way, it's okay to connect to Google and download things. But www.google.com still can't open, this doesn't matter.

Step two, download the JDK

Open Web page: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Select the download version according to your computer's system.

Now the computer is generally 64-bit, so choose Windows X64, then download, and install. There are no requirements for installing addresses or anything.

  

Step three, configure the environment variables

The others have written it well. I will not be tired of the statement. The following content from: http://jingyan.baidu.com/article/ce436649f4324d3773afd3ff.html

    1. Right-click on the start bar of the computer, properties, advanced system settings, environment variables, system variables, new. Create the Java_home variable, the value of which is the JDK's installation path on the computer. If the installation path is not changed during installation, its default path

    2. Create a java_home environment variable.

    3. Then view the path variable in the variable list, the path variable allows the system to identify the Java command under any path, if it does not exist, create a new variable path, otherwise select the variable, click the Edit button, move the cursor to the front of the content in the input box of the variable value, and add " %java_home%\bin;%java_home%\jre\bin; " or direct "%java_home%\bin;", click the OK button

    4. View the CLASSPATH variable in the variable list and, if it does not exist, create a new variable classpath, otherwise select the variable, click the Edit button, and then add "in the start position of the Variable Value text box."; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar; "

    5. After you configure these three items, you need to test for success. Open the cmd window, enter Javac, and press ENTER. A screen similar to the following appears indicating a successful configuration

  

Fourth step, download eclipse

Open Web page: http://www.eclipse.org/downloads/

  

The above two versions of Eclipse are available. 64-bit system click on 64bit.

Fifth step, Download ADT

Open Eclipse. If the environment variables above are not wrong, you can open eclipse normally.

Help→instal New Software→add

Name:adt
Location:https://dl-ssl.google.com/android/eclipse

Follow the above steps to download everything. After the download is complete, Eclipse is restarted. Which will let you choose, you just have to accept, and click OK.

No way, since want to use Google's things, just rest unconditional consent.

Sixth step, download the SDK

Open the Eclipse→window→android SDK Manager.

Then, the list is updated.

It is recommended to download all versions of API 14 above. Now some of the phones are still Android 4.0 system. Of course, Xiaomi is generally Android 5.1.1.

API is backwards compatible, that is to say we download API 23, we can not download other versions. If there is a variety of needs, the version still needs to download multiple.

Of course, if the hard drive is large enough, all versions will be downloaded better. However, the space required is quite large. API 21 The following files add up to about 27G.

The next task is to quietly wait for the download. I 20M of telecommunications network, download speed around 800k/s.

If, after opening the Android SDK Manager, this error occurs:

Please don't panic!

Click Tools, then select Options, then tick the first option of others. then click Close.

Click Packages, then point to reload. Then the speed flew up, I 20M net (domestic good resources, download speed has about 2.5M), incredibly have 1623k/s.

  

  

Seventh step, create an Android Appilication project

The purpose of creating a project is to generate a support package.

For example, when the highest API is 21, a APPCOMPAT_V7 project appears. His presence allows your eclipse to run the 5.0.1 version of the project.

What to do: Flie→new→project→android→android appilication Project

Enter an English word in appicication Name, but capitalize the first letter. Then next, finish.

Android Eclipse Installation Tutorial 2016.06.13 Edition

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.