Android uses SDK Manager to download SDK slow, easy to drop packets and exception resolution

Source: Internet
Author: User



The first step,



After the SDK manager starts, some Google XML files are parsed and some log messages are printed in log.



After parsing, copy all the logs into a notepad (this step is because the Log window does not support the search), in the inside to find what you want to download, and then you can get the corresponding XML file.






As an example:



If you want to download the arm EABI v7a system image for Android 4.0 (API 14), look for the keyword arm EABI v7a system image to find a line:



Found ARM EABI v7a System Image, Android API, Revision 2



Then find the corresponding XML address as: Http://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml



Remember this address, it will be used in a moment.






Step Two,



Open the XML found in the first step in the browser,



You can see the contents of the file and scroll down to find a match for the content you want to download.






Or the above example:



Want to under the ARM chip system image, you can find comments for the arm SYSTEM images under the label has such a paragraph:





<!-- Generated at Wed Dec  7 13:47:01 2011 from git_ics-mr0 @ 229537 -->
<sdk:revision>2</sdk:revision>
<sdk:description>Android SDK Platform 4.0</sdk:description>
<sdk:api-level>14</sdk:api-level>
<sdk:abi>armeabi-v7a</sdk:abi>
<sdk:archives><sdk:archive>
<sdk:size>99621822</sdk:size>
<sdk:checksum type="sha1">d8991b0c06b18d7d6ed4169d67460ee1add6661b</sdk:checksum>
<sdk:url>sysimg_armv7a-14_r02.zip</sdk:url>
</sdk:archive></sdk:archives>
<sdk:uses-license ref="android-sdk-license"/>
<sdk:tag-id>default</sdk:tag-id>
</sdk:system-image><sdk:system-image>

You can see Api-level as 14,abi for armeabi-v7a, which is obviously the thing we're looking for.








The third step,



In the match we found, to find a tag named Sdk:url, remember the value inside, according to the XML address found in the first step to replace the XML into a resource name to join out the truth of the resource.






In the example above:



Sdk:url the corresponding value is Sysimg_armv7a-14_r02.zip, the first step we get the XML address is http://dl-ssl.google.com/android/repository/sys-img/android /sys-img.xml



In this step, we splice the way is to replace the sys-img.xml into Sysimg_armv7a-14_r02.zip, we get the http://dl-ssl.google.com/android/repository/sys-img/ Android/sysimg_armv7a-14_r02.zip



This URL is the real URL to the resource.






Fourth step, use thunder or other means to download the found resources, downloaded files copied to the directory in the SDK temp directory, restart the SDK Manager, re-tick the resources you want to install, this time because the local temp directory has saved the full resource file, So download this step will be done directly, the SDK Manager will be installed directly, the installation is OK.






Done!









This post is part of this article: http://www.cnblogs.com/liongis/p/3659813.html



This article on the basis of the original paste to do some finishing, thanks to the original author's share.



Android uses SDK Manager to download SDK slow, easy to drop packets and exception resolution


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.