Http://www.cnblogs.com/kangjianwei101/p/5621238.html#m4
Android SDK Manager and AVD Manager use (Win7_64bit under test)
Directory
1. Overview
2. Tools used in this article
3. Android Development Essentials Toolkit Download
4.Android SDK Manager uses
5.AVD Manager use
6. Precautions
7. Related blog posts (androidstudio, Idea, Eclipse Android environment configuration)
>> See images can be opened in the new tab to see a larger image
1. Overview
As the name implies, Android SDK Manager is an Android software Development Kit manager, like a bridge to connect to local and server, download Android development tools from the server to the local.
The AVD Manager is an Android virtual Drive manager that is used primarily to create an Android simulator (ie, a mobile phone simulator). Of course, the image required by the Android emulator (an operating system that can be interpreted as a simulator) is downloaded through the SDK manager.
For the use of SDK Manager and AVD Manager, a basic toolkit for tools is also required to provide support.
2. Tools used in this article
SDK Infrastructure Kit (required, updated to Tools 25.2.2)
Offline Help documentation (optional, updated to API 24)
Official Android Sample offline version (optional, updated to API 23, if the official update I will follow up)
CPU Virtualization detection software (optional)
3. Android Development Essentials Toolkit Download
After downloading the SDK Infrastructure kit, unzip it to see the following files:
Move the SDK folder to the default disk, and the remaining space on the disk >30g as well. It is recommended that the SDK folders and other development tools be placed in the same directory for easy management.
4.Android SDK Manager uses 4.1 to start the SDK Manager and see the list as:
Note 1: If the list cannot be updated, see the agent's settings in the note matter.
Note 2: Different versions of tools, the list of updates may vary, and the list is based on tools25.2.2.
4.2 The Tools function as follows:
━━┳tools directory (required tools):
┣━━android SDK Tools (must, just download a version, generally choose the latest version): The basic kit, version number with RC words is the preview version.
┣━━android SDK Platform-tools (must, just download a version, generally choose the latest version): From the android2.3 began to draw this directory, the storage of common development tools, such as ADB, sqlite3, etc., is divided into here.
┗━━android SDK Build-tools (must, can install multiple versions): Android Project Build Tool.
━━┳android xxx (API xx) directory (optional Platform development tools):
┣━━documentation for Android SDK (optional): Some offline documents on the Android developer's website, but it's slow to download, and another offline version is available later.
┣━━SDK Platform (MUST): the development tools of the corresponding platform, which version of the platform needs to be developed on which to download.
┣━━samples for SDK (optional, this item is not available in the high-level tools, it needs to be introduced in the IDE via import sample, and of course it can be downloaded offline version): Built-in Android sample program, recommended installation.
┣━━sources for Android SDK (optional): Android API source code, recommended installation.
┗━━xxxxxxxx image (optional): Each object that ends with an image is a simulator that supports the corresponding platform, so let's think of it as a brush bag. (You don't need to install if you use a real machine to debug or use another emulator)
━━┳extras directory (optional extension):
┣━━android support Libraries (required, already missing in high-version tools, should be integrated elsewhere): supports the low-version platform when it comes to implementing a high-version platform control effect.
┣━━android support Repository (required): primarily facilitates the use of Android support Libraries in Gradle because Google does not publish these libraries to Maven center or Jcenter , it uses Google's own maven repository.
┗━━intel x86 Emulator Accelerator (HAXM installer) (optional, but very needed, requires CPU support virtualization support): Intel x86 emulator Accelerator for Windows platform, with Intel x86 The atom/atom_64 System image is used to speed up the operation of the emulator.
4.3 Download tool (if you cannot connect to the download site, you can see the settings for the agent in the note)
Once you have checked the plugin you need to download, click Install, then accept the installation agreement and wait patiently for the download to complete ...
Note 1:google the beginning of the file beginners generally do not use, and use need to FQ.
NOTE 2: If the Intel Series simulator is not available, use the ARM emulator instead. The disadvantage of ARM simulator is slow ....
Note 3: With respect to the last simulator accelerator, it only supports the Intel x86 Architecture series emulator, and is installed separately once downloaded:
Open the download directory for the accelerator:
Install the accelerator (click Next):
5.AVD Manager uses 5.1 to open AVD Manager
5.2 Setting Emulator parameters
5.3 Starting the simulator
6. Note Everything Item 6.1 installation version
6.2 Proxy Settings
6.2.1 Here is a usable domestic SDK mirroring agent (available only for resources in the Download SDK):
Where to set up the proxy:
This site provides additional proxy URLs and multiple versions of the offline installation package:
Android development tools and related images
6.2.2 for FQ query information needs of small partners, special recommended free agent Gadget blue light (Lantern), desktop and mobile version:
Note: After installing the blue light but not turning on the blue light, it may invalidate the default browser. It is recommended that you set your computer's default browser to a infrequently used ie.
Blue Light Windows edition
Blue Light Android version
More versions see the blue light in the Civil Service network (not guaranteed to have normal access at all times)
After downloading the tool, unzip and double-click Install ...
Now that you have installed Lantern, if you cannot update the SDK, you can use Lantern to set up the agent download SDK as follows:
6.2.2.1 start Lantern, get its proxy address and listening port (Note: Your port there may differ from mine).
Reference Blog: How to view the port number and IP of a program
6.2.2.2 set the proxy, set the results (different computers may be different):
6.3 Offline documentation
Since the official download of the offline document contains some Google services, so the speed is too slow to open, so here is an offline document that has been removed from Google services:
Note: There is now a civilian network of Android developers, so offline documentation depends on your individual needs.
Offline documentation
This document can be placed in any place with a browser open, personal feeling is the best browser browsing, Firefox also line, ie on the second, the other is different ...
Some people say why is this open fast? The principle is to remove those Google-related font services and JS script just fine, if you want to try, you can use the notepad++ software, in the offline document store directory, the following four strings are searched, and replaced by empty strings, such as:
Http://fonts.googleapis.com/css?family=Roboto+Condensed
Http://fonts.googleapis.com/css?family=Roboto:light,regular,medium,thin,italic,mediumitalic,bold
Http://www.google.com/jsapi
Https://developer.android.com/ytblogger_lists_unified.js
Remember is to replace the empty string, due to more files, the replacement process a little longer, patient waiting ...
If you do not want to try, directly download the above replacement is OK.
It is also important to note that some of the images in the official offline documentation are not displayed properly due to errors in the documentation itself, and the solution is to modify those image references (you need to know some HTML knowledge). Of course, this is for obsessive-compulsive disorder, those pictures do not affect the reading of the document, so do not modify it.
In addition, offline documentation provides about 95% of the online documentation, and individual links need to be viewed Fanqiang. Fortunately, those who do not have basic content, and so on when you need to use, Fanqiang browse online documents can.
6.4 Official Android Sample
In the older versions of SDK tools, the official sample can be downloaded directly in tools, and then imported as follows:
However, in the new version of tools, sample is no longer available for direct download (no way to ...) ), the following solutions are available:
6.4.1 offline Import sample , here is an offline sample first:
Android official sample offline download (contains the Android 15-android 23 sample, you can choose the desired version)
After downloading, unzip, and suggest to place these examples under the SDK folder.
If you still import these samples using Import sample, a failure prompt appears:
Therefore, the recommended practice is to:
6.4.1.1 ( plan I ) to create a new project, and copy the corresponding source code and resources into the new project, the disadvantage is that the resources are more copies of the more troublesome, but the advantage is generally not updated gradle.
6.4.1.2 ( scenario two ) is imported directly through Import project, the advantage of this is that it is easy to import, but the disadvantage is that it is often necessary to update the Gradle version ( since those sample projects are created using the Gradle version is generally lower than the gradle version you have installed on the compiler now )。
As far as I am concerned, the second option is recommended because the imported project is guaranteed to be complete, then the following drawings illustrate the import process:
6.4.1.2.1 Import Snake Project:
Before importing, you can look at the Snake project directory structure, you can see that its directory is just the source code and resources, there is no build tool information:
The import steps are as follows:
Project Showcase:
6.4.1.2.2 importing multi-touch items:
Before importing, you should still look at the directory structure of this project:
It can be noted that the contents of this directory are clearly more than the above-mentioned snake project, this is because this project has been packaged as a Androidstudio project, it is because there is a build tool gradle information, so there may be the construction of the project gradle version is lower than the current version of the Gradle installed, this time need to update Gradle, the following illustrations:
Project Showcase:
At this point, the import of two different directory structure items has been shown,
6.4.2 Importing Sample Online
If you import sample online, you need to set up an agent to FQ, take Lantern Software as an example, the following steps:
6.4.2.1 View Lantern service address and listening port (general address 127.0.0.1, port number in the trial list of those found, see the following blog post):
Reference Blog: How to view the port number and IP of a program
6.4.2.2 set up the agent in Androidstudio (note: Confirm the port number, you see there may not be the same as my here):
6.4.2.3 Online Import Project:
Examples of projects:
6.5 Simulator Selection
The official simulator was not recommended before, because the official simulator was too slow, but now there has been a great improvement.
An unofficial simulator is recommended here, with good speed and stable performance:
Genymotion Android Simulator and VirtualBox virtual machine installation, configuration, testing
It is worth noting that thegenymotion Simulator free version does not provide SMS and telephone these test functions, if necessary, please also use back to the official Android simulator, or use the genymotion paid version.
6.6 Real-Machine commissioning
Real machine debugging note turn on USB debug mode and install the relevant driver.
The advantage of the real machine is that it can simulate all environments, but the disadvantage is that it is not convenient for frequent testing and multi-version adaptation.
6.7 CPU Virtualization Detection
First download a small software: CPU Virtualization detection software
If the detection is successful, the following results appear:
Note the statement in the red box, if you are prompted by the CPU support virtualization but not open, then please self-open the virtualization can, as to how to open, different motherboard into the BIOS settings are not the same, but are similar, self-search can be .
Some anti-virus software uses CPU virtualization technology to protect the computer, such as of the nuclear crystal protection function, which will cause virtual machine startup failure. So if you have similar software turned on similar features, please turn off this type of protection and restart your computer .
6.8 Known Bugs
Android device Monitor is not working properly while using the Android 24 emulator. and at this time if connected to the real machine, then the real chance to disconnect the computer frequently, do not know if this is my personal problem or a bug.
There is also the Android 23 emulator and above, DDMS can not display the phone file directory.
If someone encounters the same problem, it is recommended to use Android 23 and the emulator below.
6.9 If the link involved in this article is swallowed, or if you find it wrong, please contact QQ245176013 ... 7. Related blog Posts
7.1 Android Development environment Configuration
7.2 androidstudio installation, configuration, testing
7.3 IntelliJ idea installation, configuration, testing
7.4 Eclipse for javase installation, configuration, testing
7.5 Eclipse for Java EE installation, configuration, testing
Back to Catalog
Category:. Development tools installation use.
Android SDK Manager and AVD Manager use (win7_64bit test)