安装Android Studio 的时候总是报这个错
The following SDK components were not installed: addon-google_apis-google-21, build-tools-21.1.2, android-21, sys-img-x86-addon-google_apis-google-21, source-21, extra-google-m2repository
解决办法:
应该是不能下载的问题,这需要修改host实现访问谷歌服务器。
window打开:C:\Windows\System32\Drivers\etc
Mac:前往文件夹/etc/hosts
再用记事本(文本编辑器)打开hosts文件,在末尾添加如下再重试:
203.208.46.146 www.google.com
74.125.113.121 developer.android.com
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com