Android environment configuration and solutions to a series of problems

Source: Internet
Author: User

Suddenly, Mobile Embedded Development has a strong mood. After two years of. NET development, I don't want to give up, but I want to change my work methods. On the one hand, I really like mobile development, and I want to pay more. In particular, there are many people and opportunities in Beijing. Therefore, only continuous learning can lead to more opportunities.

I have been paying attention to mobile development content on the Internet before. Later, a friend of Java showed off android in front of me, so I decided to learn about Android. I also learned java before I made software, so I also have some knowledge about Java. In addition, Java and. Net programmers with the same working experience in external companies have a salary of more than 500 higher than that of. Net programmers. Therefore,. Net programmers cannot make much money at the beginning. Well, I just stopped talking nonsense. Now let's talk about some problems I encountered during Android installation.

People who want to learn android must have some programming skills. I have also learned about the functions of various installation files before installing android. My android installation environment.


Jdks: JDK 6.0

Eclipse: Eclipse IDE 3.5.2 for Java developers

ADT: ADT-0.9.7, Eclipse IDE Android development of a plug-in

Android SDK: The android SDK contains development simulators and APIs.

Installation steps:

1: Install JDK

2: Install eclipse. Eclipse is mostly free of installation. We recommend that you download version 3.5 or later.

3: Install ADT. The ADT can be installed in two ways: Online installation and ADT installation.

A: Online installation. Eclipse menu help -- "install new software click Add on the right to bring up a dialog box. Enter a site name in the Name box ).

Enter the in location (this URL is just an example, you can also find something else online ). Click OK. The Android plug-in to be installed is displayed in the tree list below. Click Next.


B: The second method for installing ADT. Agree to display the same interface as above in eclipse menu help -- install new software. Then, click "archive..." next to it and select the ADT path.

Install it.

4. Install the android SDK. Choose Windows> preferences> Android and select the location where the android SDK is installed. For example

If the preceding operations are completed successfully, a Google robot button will appear in the eclipse toolbar. For example:

The android management interface is displayed.


5: Android SDK and AVD manager. Click window --> Android SDK and AVD manager in the eclipse menu, or click "robot" above ". The following page is displayed.


In the left-side menu, there are virtual devices, installed packages, and available packages. Click "available" to list the simulators and APIs of each version on the right. You can select the packages to be installed as needed (You are advised to install SDK platfrom Android 2.1 and 1.6). It is best to select a fast network speed when installing this. Otherwise, the snail like speed will make you regret it.

6: configure the Virtual Devices device. For example. Where the Tilde line is filled in. You can see what you think.


Run the android list targets command to test the type of the installed simulator. If yes, everything is successfully installed. You can find other commands on the Internet.

So far, the entire android environment has been matched. Some problems and solutions are listed as follows.

1: ADT Installation failed. When installing ADT online, some people did not expect to report an error in the middle after waiting for several hours. In this case, we recommend that you change the eclipse version.

2: An error occurred while starting the simulator. When starting the simulator, the following error occurs:

[09:54:50-hellowrold] Automatic Target mode: preferred AVD 'avd1. 5' is not available. Launching new emulator.

[09:54:50-hellowrold] launching a new emulator with virtual device 'avd1. 5'

[09:54:50-emulator] emulator: Error: Unknown Virtual Device Name: 'avd1. 5'

[09:54:50-emulator] emulator: cocould not find virtual device named 'avd1. 5'

This is because AVD is created in Android Virtual Devices manager. After the AVD is created, its storage path is "D: \ My Documents \. android "(or other paths), because the default file path of our XP system is c: \ Documents ents and Settings \ administrator. At this time, we need to put the ". Android" File Created under "C: \ Documents ents and Settings \ Administrator.

3: After creating an android simulator in eclipse, the following error is reported when the simulator is started: "error: No search paths found in this AVD's configuration. weird, the AVD's config. INI file is malformed. try re-creating it. ". Cause: the path attribute in the generated. Android \ AVD \ <avdname>. ini file contains Chinese characters. Solution: The Path attribute marks the simulator location. Therefore, copy the AVD to a directory (such as E: \) without Chinese characters in the path :\), then, modify the path following the path. In the eclipse menu, click window --> preferences. The following page is displayed.

Adjust the default location of the keystore.


The following is the android 2.1 Simulator Interface. Really good. If you have any problems when installing Android, follow the instructions below to help you solve them. If you have any comments on this installation method, leave a message to me. You are welcome to share with us. Who is missing the installation file and I'm glad to provide it to you (MSN: ).


This article is original. If you have reposted this article, please indicate the source:

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: 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.