Workarounds for Android SDK and ADT update access issues

Source: Internet
Author: User

I. Access issues
The problem always occurs when Eclipse uses SDK Manager updates

Failed to fetch URL Https://dl-ssl.google.com/android/repository/repository-6.xml,

Reason:connection to Https://dl-ssl.google.com refused

Failed to fetch URL Http://dl-ssl.google.com/android/repository/addons_list-1.xml,

Reason:connection to Http://dl-ssl.google.com refused

Failed to fetch URL Https://dl-ssl.google.com/android/repository/addons_list-1.xml,

.........

Workaround:

Open SDK Manager under Tools->options, select "Force https://... sources to be fetched using http:

Once selected, some can be updated out of the list. If it is still not, navigate to directory : C:\WINDOWS\system32\drivers\etc, you will see the Hosts file.

If you don't see it, open the hidden file if you still don't see it as:

Folder Options, remove the checkmark.

Hosts file, right-click Open mode to select Notepad. Copy the following text in it, as follows ( it is pasted after the original content, not overwritten ):

#Google主页

203.208.46.146 www.google.com

#这行是为了方便打开Android开发官网 don't seem to be able to open a VPN now.

74.125.113.121 developer.android.com

#更新的内容从以下地址下载

203.208.46.146 dl.google.com

203.208.46.146 dl-ssl.google.com

Effect

Then you will see the list loaded, if not, reopen the SDK Manager, you will find the list is loaded, mainly download speed is very strong, and directly under the turtle speed is not a level

Two , ADT version issues

And then the trouble here is that every time the update is started, Eclipse will prompt: Thisandroid SDK requires Android Developer Toolkit version *.*.* or above

This is because after selecting the update, the plugin.prop file under android_sdk_windows/tools/lib is changed to a more

# Begin Plugin.prop
plugin.version=23.0.0
# End Plugin.prop
Workaround Find the file Plugin.prop


Modify plugin.version=22.6.3 Save, and then restart Eclipse.

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.