Build an Android development environment based on Eclipse-win7 32bit

Source: Internet
Author: User
Tags adt packages android sdk manager

Build an Android development environment based on Eclipse-win7 32bit

Preface: When using a friend's built Android development environment, discovering that a friend's development environment version is low and failing at the Update SDK, decides to build a new Android development environment from scratch based on the online article tips.

1. Preparatory work

Download Eclipse, JDK (7), Android SDK, ADT plugin.

Address:

eclipse:http://www.eclipse.org/downloads/version: Luna Service Release 1 (4.4.1)

Jdk:http://www.oracle.com/technetwork/java/javase/downloads/index.html version: 1.7.0_09

Android sdk:http://developer.android.com/sdk/index.html

Note: 1, the SDK download, according to the self-system version (32bit) demand, captured for Https://dl.google.com/android/adt/adt-bundle-windows-x86-20140702.zip

2, JDK installation procedures and system environment variable configuration method please find yourself, here is not a description.

2. Install Eclipse ADT Package

After downloading the SDK, install the Eclipse ADT package as prompted by the official website. The specific information is as follows:

      

After using Google Translate and finishing your own translation, the following are generally translated:

  Installing the Eclipse ADT Package

The Eclipse ADT Package provides you with the need to start developing applications, including Android SDK tools and a version of the Eclipse IDE built-in ADT (Android developer tools) to simplify your Android application development.

If you did not download the Eclipse ADT Package, now go to download the Eclipse ADT Package, or switch to the Android studio installation or the Standalone SDK tool installation instructions.

  To create an ADT package:

1. Unzip the zip file (named Adt-bundle-< Os_platform >. ZIP) and save it to an appropriate location, such as the "Development" directory in your home directory.

2. Open Adt-bundle-< Os_platform >/eclipse/directory and launch Eclipse.

  warning: Do not move any files or development under Adt-bundle-< os_platform > directories. If you add eclipse/or SDK/directory, ADT will not be able to locate the SDK and you need to manually update ADT preferences.

  Eclipse ADT is now ready and loaded with Android development tools, but there are still several packages that you should add to make your Android SDK complete.

  Note:

1, English proficiency is limited, if translation is not appropriate please forgive, the original link: Http://developer.android.com/sdk/installing/index.html?pkg=adt

2. When you start Eclipse, Report failed to create the Java vitual machine

Error reason: Computer memory is not enough, you can not allocate enough memory to boot according to the int file requirement. You can modify the int file to resolve the problem, or you can turn off some programs to free up memory.

I use the fix. int file After the problem is resolved (workaround reference article link)

       Before modification:        

                

        After modification:

      

3. Eclipse Installs ADT packages online

Click Help->install New software, and in the Open dialog box, type directly in "Work with":https://dl-ssl.google.com/android/eclipse/ Install the ADT plugin online. However, because Google's servers are set up abroad, this way will be relatively slow to install, and may have a bad personality can not be put on the situation.

Note: Due to rp+ speed + well-known (wall) problems, online installation of successful software package success rate is very low, recommended to use offline installation.

4. Eclipse installs the offline ADT package

Next we will find the ADT package in the official website to download

1, enter the official website http://developer.android.com/tools/sdk/eclipse-adt.html

      

2. Select Installing the Eclipse Plugin (install Eclipse plugin), wait for the page to open and proceed to the next step

3. Find "Troubleshooting ADT Installation" and select download link to download the offline ADT package as shown in.

      

Click on the link to download.

Now that we have completed the offline download of ADT package, we can follow the instructions on the website to install it. (2-10 in the corresponding 1-9 below)

1. Start Eclipse, then select Help > Install new software.

2. In the upper right corner, click Add.

3. In the Add Library dialog box, click Archive.

4. Select the downloaded adt-23.0.4.zip file and click OK.

5. Enter the "ADT Plugin" name and click OK.

6. In the Available Software dialog box, select the check box next to the developer tool, and then click Next.

7. In the next window, you will see a list of tools to download. Click Next.

8. Read and accept the license agreement, then click Finish.

If you get a security warning saying that the authenticity and validity of the software cannot be established, click OK.

9. When the installation is complete, restart Eclipse.

Note: 1, captured ADT download link address: https://dl.google.com/android/ADT-23.0.4.zip

2, you can also refer to the Android Foundation with Eclipse to build the Android development environment and create the first Android project (Windows platform) to install the ADT plug-in part of the graphics and commentary operation.

5. Update the SDK

After you open eclipse, click Window->android SDK Manager to access Android SDK management. As follows:

      

Select the package you want to install here, and click Install packages for the package installation.

When you update the SDK package, you can see that the bottom appears similar to the "Downloading Android SDK tools,revision XX." x.x (XX%) "statement appears, indicating that the network is unblocked and the installation package is being downloaded for installation. However, there will often be an Android SDK manager that does not update and an error message appears: "Failed to fetch URL ...", which indicates that our current network is unable to access the installation package resources smoothly.

The Android SDK Manager cannot update the workaround

1) Under SDK Manager tools->options Open SDK Manager settings, select "Force https://... sources to be fetched using http://...", Enforces the use of the HTTP protocol.
2) Then change the Hosts file. WINDOWS in the C:\WINDOWS\system32\drivers\etc\hosts directory, Linux users open the/etc/hosts file. After opening the file, add the following content.
203.208.46.146 www.google.com
74.125.113.121 developer.android.com
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com

Note: If the file cannot be modified, simply tick the read-only attribute of the file and modify it.

3) After modifying the Hosts file, restart Eclipse and proceed to the Android SDK Manager to update the SDK package as expected.

Ps:1, this article reference article links have been hung under the respective names, please click on their own view, not listed here.

2, this article is to learn to take notes, for learning records. If the author of the article feels that this article is infringing, please contact us promptly.

Build an Android development environment based on Eclipse-win7 32bit

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.