Android SDK离线安装方法
1. 打开SDK安装目录下的SDK Manager.exe;
2. 选择需要安装的SDK工具,如Android 8.1.0 (API27), 点击"Install XX packages", 在弹出的对话框中点击“Accept License”, 点击Install
3. 在弹出的Android SDK Manager Logs窗口中,找到下载资源的列表:
如: http://dl.google.com/android/repository/repository-11.xml (SDK platform和Sources的资源列表)
http://dl.google.com/android/repository/sys-img/android/sys-img.xml (Intel x86 Atom System Image的资源列表)
http://dl.google.com/android/repository/sys-img/android-tv/sys-img.xml (Android TV Intel x86 Atom System Image的资源列表)
http://dl.google.com/android/repository/sys-img/google_apis/sys-img.xml (Google APIs资源列表)
还有一些其他的xml资源列表,这里就不举例了。
4. 以SDK platform的下载为例:
1) Android 8.1.0 对应的SDK platform, API Level为27,revision版本号为3

2) 打开http://dl.google.com/android/repository/repository-11.xml ,找到该sdk platform版本对应的资源名称为“platform-27_r03.zip”;

3) 拼接成下载url地址: http://dl.google.com/android/repository/platform-27_r03.zip,下载即可(一般都可以打开,公司内网下载速度也还挺快的)
4) 以上同样的方法下载其他资源的压缩包
以Intel x86 Atom System Image为例,它的zip包下载地址为:
http://dl.google.com/android/repository/sys-img/android + “需要的zip文件名””
5. 以上下载完毕之后,将所有的zip文件放在sdk manager同目录的temp文件夹下 (如E:\Android\android-sdk-windows\temp)
6. 重新启动SDK Manager.exe,选择上面下载的资源名称,点击Install xx packages -> Accept License, SDK manager会自动解压temp文件下的所有zip包进行安装,安装完毕可以看到对应的包显示Installed安装成功。
