Android SDK installation and troubleshooting

Source: Internet
Author: User

① First download the latest SDK 2.0 File
Address: http://dl.google.com/android/android-sdk_r3-windows.zip
② Decompress and run the SDK setup.exe

If the message is "failed to fetch URL ..." According to the following prompts.

If this error occurs, follow the steps below.
I. Close the refresh Sources window.
Ii. Cancel "choose packages to install"
III. In the "android SDK and AVD manager" window, select "Settings" on the left"
Iv. Select force https ://... "This option
V. Click Save and apply"
Vi. re-run the SDK setup.exe
③ Select the APIS version you want to install and the USB driver and SDK documentation.

Select the required package.
A. If you just need to try Android 2.0 emulator
I. Then you only select "SDK platform Android 2.0. API 5, revision 1" to install it.
B. If you want to develop applications on This SDK Program And game applications, then you need to accept and abide by all the licensed content (accept all)
C. Click "Install selected"
④ Wait for the installer to download the selected package to install the. "installing archives" window.
⑤ Create a new Android Virtual Device (AVD)

Emulate settings when AVD is created.
A. Select "Virtual Devices" from the left side of the "android SDK and AVD manager" window"
I. Select "new"
Ii. Enter an AVD name
Iii. Select a target
Iv. Size of the input simulated SD card
V. Select a skin.
1. Make the simulator look like G1, mytouch 3G, hero, and other mobile devices...
A. Retain the default skin Setting Value
2. Simulate Motorola Droid
A. Select WVGA 854
3. Simulate other devices
A. Select other options in the list.
Vi. Then "create AVD"
⑥ Start running the new simulator Virtual Device

The AVD is successfully created.
A. Select the new virtual device in the list)
B. Click Start ..."
C. Click "launch"

Click launch.
Simulator startup Interface

It takes several minutes to run for the first time.
Okay! Complete

========================================================== ========================================================== =

Download the android SDK and start installation,

The android SDK uses the Java language. Therefore, you must first install JDK 5.0 and later. Android SDK installation is not required. Here we will only introduce it based on what is mentioned on the Google website (The following is a Windows environment ):

1. Extract the downloaded SDK package to a proper location, which is so simple;

2. For convenience, you can set the path of the environment variable of the operating system and add the path of the $ SDK/tools directory to the path;

3. Install the SDK.

In addition, the android SDK provides a development plug-in for Eclipse, which is convenient for eclipse users. The plug-in installation is no longer cumbersome. The plug-in installation URL is:

Https://dl-ssl.google.com/android/eclipse/

After installing the plug-in, you need to make some simple configuration:

1. In eclipse, select Window> preference;

2. Select the android item from the menu on the left;

3. Set the SDK location and Click Browse to select the SDK installation root directory;

4. OK, complete.

Note: to reinstall the android SDK, if you want to clear the Application Data installed in the original mobile phone simulator, You need to delete userdata in the user's working directory. imgfile. For example, in windows, go to c: \ Documents and Settings \ your directory \ Local Settings \ Application Data \ Android and delete userdata. imgfile.

========================================================== ========================================================== ===

The error "requires 'org. Eclipse. GEF 0.0.0 'But it cocould not be

Eclipse version 3.5.2 is used to configure the android development environment ......

Install the SDK step by step according to the official Android documentation. When the ADT plug-in of eclipse is installed, the system prompts "requires 'org. eclipse. GEF 0.0.0 'But it cocould not be found ". After a long time, the problem was finally solved:

The GEF and eclipse's graphic editing framework are missing. The following is the plug-in address:

Http://download.eclipse.org/tools/gef/updates/releases/

In the eclipse menu bar help-> install new software, add this item, and then select the corresponding eclipse version option to install it.

In addition, you also need to add the following sites to automatically install the dependent components:

Start eclipse, click window --> preferences --> install/update --> available software sites, click Add, and add the following URLs

Eclipse GEF-http://download.eclipse.org/tools/gef/updates/releases/
Eclipse EMF-http://download.eclipse.org/modeling/emf/updates/releases/
Eclipse GMF http://download.eclipse.org/modeling/gmf/updates/releases
Eclipse WebTools-http://download.eclipse.org/webtools/updates/
Google eclipse Plugin-http://dl.google.com/eclipse/plugin/3.5

--------------------------------------------------------

ADT address

Http://dl-ssl.google.com/Android/eclipse/

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.