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:
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://
三、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