Build Android environment ADT offline

Source: Internet
Author: User

1. Download the SDK. Go to the android websiteHttp://developer.android.com/sdk/index.htmlDownload the SDK, select this 1, because this is the adt-bundle-windows-x86 compressed package, which contains eclipse and SDK, eclipse it has been integrated with ADT. In fact, this package is not completely downloaded. It is still necessary to download the package online, but the relative time will be shorter! (This is also the O (∩ _ ∩) O ~ that one later reminded me ~)

 

Figure 1

2. Unzip the adt-bundle-windows-x86. Decompress it to drive d, and the adt-bundle-windows-x86 \ Folder appears on drive D.

 

3. Set the path. Right-click "properties" on "My Computer", select "advanced", and click "environment variables" in the second line to check whether "path" is available for "administrator user variables ", add "D: \ adt-bundle-windows-x86 \ SDK \ tools" in path (do not add double quotation marks), if there is no path, click "new", variable name: path, variable value: D: adt-bundle-windows-x86 \ SDK \ tools.

 

4. Create an android simulator. Open the decompressed eclipse and click the first icon.

 

Click

 

 

 

 

 

Check that the latest Android version is 4.2. Use this version. If you want to select another version, select the version you want to download, as long as the downward arrow is used, the download may take a long time! Select a version! (It took a quarter of an hour to download these packages online, but the network speed was not very good)

 

 

Click here to open the android Simulator Interface

 

 

Click "new" to create a simulator.

 

 

 

Select AVD name and click "OK"

 

 

 

This is an android environment!

 

Note:

The SDK and ADT have been installed. You need to use eclipse in the download because it has integrated ADT.

 

TIPS:

How can I check whether ADT has been installed?

Menu --> help --> install new software will pop up a page at the bottom of the program, there is a "what's already installed", click it, a page will pop up, by default, all installed plug-ins are listed in the "intalled software" tab on this interface. If you see "android development tools" in the "name" column, it indicates that the ADT has been installed, the second column is the version number of the ADT.

 

How can I check whether the SDK has been installed?

You only have to writeProgramTo verify!

 

 

The following error occurs: panic: cocould not open: android_4.2.CodeThe environment variable is not set.
I also encountered this problem today. I found the answer online and solved the problem. Now I want to share it with you.
References
Panic: cocould not open: Solve the error when the android simulator is created

My personal heart:

1. When setting the android_sdk_home environment variable, if there is only one path, do not add ";" at the end, because I have personally experienced that sometimes adding semicolons at the end may cause some inexplicable problems.

2. in path, if you have already set the same path as android_sdk_home, delete it. After setting the path, restart eclipse and paste my environment variables, check the semicolon.
Android_sdk_home
E: adt-bundle-windows-x86 \ SDK

Path
% Android_sdk_home % \ tools; % android_sdk_home % \ platform-Tools

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.