Configure the android simulator environment in win7 for the second time

Source: Internet
Author: User
Tags java se

I have been writing this blog for three years without knowing it, and now I am working as an android development engineer at jierlang. Looking at the articles of the past, it still has its guiding significance today. If any readers encounter problems or bugs, please submit them.

I have a hunch that I will go blackening on the road of Android development.

Weibo @ Wang Tong let me fly

Bytes ---------------------------------------------------------------------------------------------

If you want to wait, you will not know anything about it next year.

Two months ago, due to abnormal chrome calling via QQ, I couldn't see it, so I reinstalled them multiple times, so QQ could not be properly installed and uninstalled. I was so angry that I could reinstall win7 and solve the problem, in addition to my concerns. However, all the previously installed sqlserver, Dreamweaver, Java, Eclipse, PS, IIS, and Android simulators Nima need to be re-installed and re-configured, and vc6 will crash to me, the android simulator also gave me a problem, that is, there were no problems in the past. Now there are all problems. How lucky I was in the past.

As a newbie, every time you encounter a new thing, you have to explore it step by step. When you encounter the same or similar situation again, you are obviously familiar with it. Record the main process of configuring the android simulator environment in win7 for future reference.

 

1. download the latest JDK version from the Oracle website(Java SE development kit), install and configure environment variables;

Java_home D: \ Program Files \ Java \ jdk1.6.0 _ 26
Path % Java_home % \ bin; % java_home % \ JRE \ bin
Classpath .; % Java_home % \ Lib \ tools. Jar

Note that if system variables are configured, all accounts on the computer can be used globally. If user variables are configured, they are only used by the current user;

The correct configuration check method is that the command parameter menu is available for both the Java and javac commands entered by CMD, and three items can be found by entering where Java.

 

2. Configure eclipseBecause the software is reinstalled, but it will prompt that Java is not installed, so now it can be opened normally, and the download of ADT (Android developments tool) is also free, I just completed the checkfor updates step and attached the update address https://dl-ssl.google.com/android/eclipse/. the next download may take a long time and I suggest you start the agent. Open preferences
-For Android, you can configure the location of the android SDK and view the available API versions. I have downloaded all simulator versions 1.5-3.0.

 

3. Configure adk (androidsdk) Environment Variables


Android_home D: \ Program Files \ Android-SDK-Windows
Path % Android_home % \ platform-tools; % android_home % \ tools

(Note that the platform-tools directory is easy to omit)

The detection method is to enter the manager by entering the android command in cmd, and enter the ADB command to have a menu response.

 

4. Windows menu-android sdkand AVD Manager allows you to create and manage simulators., Version update is also here. After creating a new simulator instance, you can select the simulator that needs to run the code of the current project in run deployments. It takes some time to start the simulator. It takes longer to start the simulator for the first time. There are two ways to enter the simulator without debugging. One is to start in the manager, and the other is to run the command line CD to enter the SDK's tools Directory D: \ Program Files \ Android-SDK-Windows \ tools, using emulator
-AVD [AVD name], where [AVD name] (Android Virtual Device) is the name of the previously created simulator instance.

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.