Android 17-SDK updates, Eclipse source code viewing, and chm documentation

Source: Internet
Author: User

Android 17-SDK updates, Eclipse source code viewing, and chm documentation

Android 17-SDK updates, Eclipse source code viewing, and chm documentation



This blog shares some of the things Android Developers can do to improve development efficiency. After Google is harmonized, Android Developers are reluctant to get involved. They can only view the official website through the wall, but the sdk cannot be updated, you cannot download the source code or other issues. As an Android developer, you cannot just use the sdk as a beginner, to improve development efficiency and code quality, every developer should pursue it. The following is a summary of some solutions for your reference, which makes Android development more advanced.


Sdk update

Modify hosts skills

Go to C: \ Windows \ System32 \ drivers \ etc, open the hosts file, and add the following transparent code:

# Google Homepage

203.208.46.146 www.google.com

# This line is used to open the official Android development website. Now it seems that you can open it without turning over the wall.

74.125.113.121 2.16.android.com

# Download the updated content from the following address:

203.208.46.146 dl.google.com

203.208.46.146 dl-ssl.google.com


Then open the SDK Manager and the following errors will not occur:

Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to https://dl-ssl.google.com refused



<喎?http: www.bkjia.com kf ware vc " target="_blank" class="keylink"> VcD48cD48YnIgLz48L3A + PGJsb2NrcXVvdGU + PHA + csagicag1el79luqw5kcm9pzdqunc4yzqra/aOstPK/fingerprint = "http://www.2cto.com/uploadfile/Collfiles/20141126/20141126084348120.png" alt = "\"/>

After the download is successful, the sdk source code you downloaded will be in the sources directory under the sdk. Ctrl selects an sdk class and the following appears:


Click Change Attached Srouce..., and then associate the source code:

Click OK to view the source code in the SDK. Try it yourself.

There are other ways to view the source code. We will not introduce it here. You can use Baidu.

Android offline API help documentation

If you are too lazy to go over the wall, here we will provide an offline document, which is based on Android4.2 and basically enough. You can view the specific API method:

Download link: http://pan.baidu.com/s/1bnwAMjt

It is in chm format. After downloading it, you can easily search and view help documents:

The best source code online documentation (I don't tell anyone) was discovered by Tom by accident. I also shared it with you. Many of the source code I studied earlier will go to download the source code for a long time, go to the Linux environment and use git for download, but sometimes it is always difficult to succeed. The waiting time is too long, and it will be more troublesome after google is harmonious. There is such an online source code view, and different sdk versions are available, you can easily compare, you want to see which version of the source code is OK, suddenly feel that the world is too beautiful. Address: http://grepcode.com/project/repository.grepcode.com/java/ext/com.google.android/android/

The above content by Xiao Wu finishing release, reproduced Please note: IT_xiao Xiao Wu, http://blog.csdn.net/wwj_748





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.