$ android update sdk -u -a
得到:
Fetching URL: https://dl-ssl.google.com/android/repository/repository-10.xml
Validate XML: https://dl-ssl.google.com/android/repository/repository-8.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-8.xml, reason: HttpHostConnect Connection to https://dl-ssl.google.com refused
Parse XML: https://dl-ssl.google.com/android/repository/repository-8.xml
Fetching URL: https://dl-ssl.google.com/android/repository/addon.xml
Validate XML: https://dl-ssl.google.com/android/repository/addon.xml
Parse XML: https://dl-ssl.google.com/android/repository/addon.xml
Fetching URL: https://dl-ssl.google.com/android/repository/addon-6.xml
Validate XML: https://dl-ssl.google.com/android/repository/addon-6.xml
Parse XML: https://dl-ssl.google.com/android/repository/addon-6.xml
Fetching URL: https://dl-ssl.google.com/glass/gdk/addon.xml
Validate XML: https://dl-ssl.google.com/glass/gdk/addon.xml
Parse XML: https://dl-ssl.google.com/glass/gdk/addon.xml
Fetching URL: https://dl-ssl.google.com/android/repository/extras/intel/addon.xml
Validate XML: https://dl-ssl.google.com/android/repository/extras/intel/addon.xml
Parse XML: https://dl-ssl.google.com/android/repository/extras/intel/addon.xml
Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml
Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml
Parse XML: https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml
Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml
Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml
Parse XML: https://dl-ssl.google.com/android/repository/sys-img/android-wear/sys-img.xml
Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml
Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml
Parse XML: https://dl-ssl.google.com/android/repository/sys-img/android-tv/sys-img.xml
Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/google_apis/sys-img.xml
Validate XML: https://dl-ssl.google.com/android/repository/sys-img/google_apis/sys-img.xml
Parse XML: https://dl-ssl.google.com/android/repository/sys-img/google_apis/sys-img.xml
Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml/addon.xml
这里有gdk,sysimg,addons等的配置文件地址。
wget或者浏览器得到xml,比如:
打开 https://dl-ssl.google.com/android/repository/sys-img/android/sys-img.xml
2
Android SDK Platform 4.4.2
19
armeabi-v7a
158478012
e0d375397e28e3d5d9577a00132463a4696248e5
sysimg_armv7a-19_r02.zip
default
其中
sysimg_armv7a-19_r02.zip
就是sysimg arm -19的system image
然后下载地址就是xml地址去掉xml之后加上sysimg文件地址
然后wget或者浏览器下载。
下载完解压放在相应目录
其中sdk放在sdkroot/platforms/下
sysimg放在sdkroot/system-images/android-xx下(xx表示版本比如上面的例子就是-19)
注意上面这些目录可以新建,然后允许android sdk manager看到installed状态就说明成功手动安装。