Install the Android SDK and ADT steps and problems encountered

Source: Internet
Author: User

http://894503895.diandian.com/post/2012-05-16/18695648

1. Install Eclipse. : http://www.eclipse.org/downloads/
Note: Install version 3.6 and above
2. Installing ADT
(1) Online installation
Open Eclipse, select Help->install New software ... Pop-up Install new software window
Enter https://dl-ssl.google.com/android/eclipse/in "work with"
Select All software, always next, you need to accept the accept, until the installation is complete.
PS: If you have not successfully installed the information to ADT, restart eclipse a few more times.
(2) Offline installation
Download the ADT Zip file.
Open Eclipse, select Help->install New software ... The Install new software window pops up.
In the "work with" midpoint "Add", enter name, and select the path of ADT in point archive. You can then install it in a way that is installed online.
3. Installing ANDROID-SDK
Visit http://developer.android.com/sdk/index.html to download the appropriate installation package for your platform.
Set System Variables
Set the system environment variable android_home, set as the SDK installation directory, such as D:\android\android-sdk-windows
Will d:\android\android-sdk-windows\tools;d:\android\android-sdk-windows\;
D:\android\android-sdk-windows\platform-tools; Add to Path system variable
Setting the SDK Path
Enter the installation path for the SDK in Eclipse->windows->preferences->android D:\android\android-sdk-windows
4. Installing the SDK
When you open SDK Manager in D:\android\android-sdk-windows, multiple SDK versions will appear. The more widely used is 2.2, 2.3.3, 3.1, select the appropriate version click on "Install package". This completes the SDK installation.
Ps:tools in the Android SDK Platform-tools must be selected.
Before installing sdk18.0.0, when running Android unit test, I encountered this problem: Java.lang.RuntimeException, the error message is too small, right. We'll show you in detail later
This is sdk18.0.0 own bug caused, later loaded a sdk16.0.0 on OK.
5. Create an AVD
Open Eclipse, select Windows->avd Manager, click New, enter name, select Taget,size, click Create AVD.

OK, you can create the project below.

Two problems encountered

(1) As everyone knows, Android test needs to re-sign the package, but after using Re-sigh.jar re-signing, it still prompts for a signature error. Find a lot of solutions, finally there is no way, the JDK version from 1.7 to 1.6,ok. For this reason, it is recommended to check the version of Eclipse and JDK installed before installing the child shoes. To validate a successful mate: Eclipse 3.6 and jdk1.6

(2) After resolving the problem of re-signing, run the demo and prompt RuntimeException. Use Logcat to view the specific reason: caused by:java.lang.RuntimeException:Could not the find test class. Class:com.tencent.test.qqdriver.demo.AndroidQQDriverDemoScript. Google a lot of ways, and finally found that the sdk1.8 and adt18 version of the problem, there is no way, can only downgrade to sdk1.6 and adt16. Here I would like to sigh, the installation of an Android environment is really anxious and noisy. We recommend that you use the mainstream version, the latest is not necessarily the most appropriate.

Install the Android SDK and ADT steps and problems encountered

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.