eclipse download sdk

The first part, the windows environment

I have referenced a lot of methods for downloading Android  sdk related configurations in eclipse on the Internet, but they are basically not completely consistent, so I will share my configuration:

(1) Find the following directory: C:\Windows\System32\drivers\etc\ , open the hosts file with Notepad , as shown below:

Insert the content in the red box, as follows,
127.0.0.1 localhost
::1 localhost

(2) Open the Android SDK Manager in the Window option of the Eclipse menu , as shown below:

You can see that there are two options Packages and Tools in the upper left menu in the figure.
(3) Open Android SDK Manager -> Tools -> Options, the Android SDK Manager - Settings interface appears, as shown below;
Perform the 3 settings in the above figure on the above interface . (fill in Server address + fill in Port + check Force https)
(4) After the setting is completed, select Close to close the Android SDK Manager - Settings interface, the Android SDK Manager interface will display the relevant Android API , and select to download; if the API is not displayed, you can close and restart Eclipse to try.


Other:
To configure the Android SDK directory for the newly installed Eclipse, go to the Window -> Preference interface in Eclipse, click Android, there is an SDK Location on the right, and fill in the directory where the SDK is located.


The second part of the mac environment


For well-known reasons, many websites of google are inaccessible in China, which has forced a lot of programmers from China. The following is the process of tossing the android development environment on the mac:

1. First download the android sdk for mac

Give two reliable URLs:

a). http://down.tech.sina.com.cn/page/45703.html

b). http://mac.softpedia.com/get/Developer-Tools/Google-Android-SDK.shtml

After downloading to this page, unzip it to a certain directory

 

Second, set the download proxy server

Enter the tools directory from the command line

Then enter  ./android sdk  to get out of the GUI of SDK Manager

Android SDK Manager -> Preferences...

http proxy server fill in here:  mirrors.neusoft.edu.cn  (Thanks to Neusoft for building a domestic mirror server, which has benefited countless programmers)

Fill in 80 for the port, and then check the box before Force https://

 

#3rd floor   2015-10-03 16:25  雪山猕猴   
我使用mirrors.neusoft.edu.cn没有镜像成功,改用mirrors.opencas.ac.cn 端口:80成功下载了Android SDK。另外,自定义添加的那堆网址没有变。祝大家顺利~

三、mac顶部菜单Tools->Manage Add-on Site

把下面这堆网址:

http://mirrors.neusoft.edu.cn/android/repository/addon-6.xml 
http://mirrors.neusoft.edu.cn/android/repository/addon.xml  
http://mirrors.neusoft.edu.cn/android/repository/extras/intel/addon.xml  
http://mirrors.neusoft.edu.cn/android/repository/sys-img/android-tv/sys-img.xml  
http://mirrors.neusoft.edu.cn/android/repository/sys-img/android-wear/sys-img.xml  
http://mirrors.neusoft.edu.cn/android/repository/sys-img/android/sys-img.xml  
http://mirrors.neusoft.edu.cn/android/repository/sys-img/google_apis/sys-img.xml  
http://mirrors.neusoft.edu.cn/android/repository/sys-img/x86/addon-x86.xml  
http://mirrors.neusoft.edu.cn/android/repository/addons_list-2.xml  
http://mirrors.neusoft.edu.cn/android/repository/repository-10.xml

全手动New加进去,然后就可以下载了

Note: The circled items in the above picture are recommended to be checked, otherwise the Android simulation device may not be created

 




Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325554287&siteId=291194637