加载Android SDK工具时出现问题
请在我尝试使用以下命令获取Android的sdk列表时,加载Android SDK工具时出现问题,android,ubuntu,ubuntu-16.04,android-sdk-tools,Android,Ubuntu,Ubuntu 16.04,Android Sdk Tools,请在我尝试使用以下命令获取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 L
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
所以我找到了安装SDK的手册 您可以找到各种类型的下载链接,例如: 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
$ 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
平台工具
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
$ 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
构建工具
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
$ 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
平台
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
$ 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
手动下载如23.0.1版的构建工具
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
$ 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