安裝Android Studio 的時(shí)候總是報(bào)這個(gè)錯(cuò)
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
解決辦法:
應(yīng)該是不能下載的問(wèn)題,這需要修改host實(shí)現(xiàn)訪問(wèn)谷歌服務(wù)器鸠删。
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