Android Studio 1.0 SDK update method

Source  http://jinyudong.com/2014/11/12/Android-Studio-SDK-Update/

     Android studio is the Android IDE developed by Google. If you used Eclipse before, you would be very uncomfortable. However, the source code in foreign websites such as github has been gradually developed using AS editing. New things are always difficult to accept, but they have great vitality. Determined to switch to the AS editing environment.

    Under normal circumstances, to download Android SDK, you need to connect to Google's server to download. Due to the domestically distressed network, the speed is basically 0. Fortunately, there is also an updated mirror address in China. This article introduces how to use the domestic mirror address to update the android sdk without going over the wall.

Set host

First, set up hosts in etc/hosts, which requires administrator authority. Use vim to edit hosts:

In windows environment: (default administrator rights)

Open the computer's system disk (usually the default is C drive): C drive -> Windows -> System32 -> drives -> etc -> hosts file


Say the following content is copied and added to the hosts file, and save!

1
#Google主页
203.208.46.146 www.google.com
##This line is for the convenience of opening the official Android development website. Now it seems that you can open
74.125.113.121 developer.android.com
##The updated content is downloaded from the following address
203.208.46.146 dl .google.com
203.208.46.146 dl-ssl.google.com

Change Android SDK Manager settings



Set in Preference, modify the configuration as follows:

HTTP Proxy Server: mirrors.neusoft.edu.cn

HTTP Proxy Port: 80

Then check the mandatory use of http:


Then you're done, you can download the Android SDK happily and quickly without worrying about network speed and other issues.

Guess you like

Origin blog.csdn.net/sun19890716/article/details/44595225