每当我尝试使用以下命令获取Android的sdk列表时,android list sdk -a
我会收到以下列出的错误。
Fetching https://dl.google.com/android/repository/addons_list-2.xml
Failed to fetch URL
https://dl.google.com/android/repository/addons_list-2.xml, reason:
File not found
Fetched Add-ons List successfully
Refresh Sources
Fetching URL: https://dl.google.com/android/repository/repository-11.xml
Failed to fetch URL
https://dl.google.com/android/repository/repository-11.xml, reason: File not found
Refresh Sources:
Fetching URL: https://dl.google.com/android/repository/repository-11.xml
Failed to fetch URL https://dl.google.com/android/repository/repository-11.xml, reason: File not found
答案 0 :(得分:0)
所以我找到了安装SDK here
的手册您可以找到各种类型的东西下载链接,例如:
<强> ADK 强>
http://dl.google.com/android/ADT-XX.0.0.zip
SDK工具
http://dl.google.com/android/repository/tools_rXX-linux_x86.zip
http://dl.google.com/android/repository/tools_rXX-windows.zip
http://dl.google.com/android/repository/tools_rXX-macosx.zip
平台工具
http://dl.google.com/android/repository/platform-tools_rXX-linux_x86.zip
http://dl.google.com/android/repository/platform-tools_rXX-windows.zip
http://dl.google.com/android/repository/platform-tools_rXX-macosx.zip
构建工具
http://dl.google.com/android/repository/build-tools_rXX-linux.zip
http://dl.google.com/android/repository/build-tools_rXX-windows.zip
http://dl.google.com/android/repository/build-tools_rXX-macosx.zip
<强>平台强>
http://dl.google.com/android/repository/android-XX.zip
要手动下载,例如版本工具版本23.0.1
$ cd android-sdk-linux/build-tools
$ wget http://dl.google.com/android/repository/build-tools_r23.0.1-linux.zip
$ unzip build-tools_r23.0.1-linux.zip
$ mv android-6.0 23.0.1
$ rm build-tools_r23.0.1-linux.zip
旁注(ubuntu):
如果您正在运行 debian / ubuntu 64位,要运行aapt
,您需要安装其他软件包:
sudo apt-get install lib32stdc++6
sudo apt-get install lib32z1