如何从命令行在 Android SDK 中“使用 http:// 强制获取”
How to “Force fetch using http://" in Android SDK from command line
我正好遇到这个问题:
Android SDK installation issue - Peer not authenticated
I am trying to install the Android SDK and I get the following error
in the SDK Manager Logs -
Fetching https://dl-ssl.google.com/android/repository/addons_list-1.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml,
reason: peer not authenticated
Fetched Add-ons List successfully
Fetching URL: https://dl-ssl.google.com/android/repository/repository-5.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-5.xml, reason:
peer not authenticated
Done loading packages.
我不是代理人,我在那里找到的所有回复以及其他类似问题都是:
enable the "Force https://... sources to be fetched using
http://..." setting in the SDK Manager Tools > Options menu.
但我在没有 GUI 的 CentOS 6 安装上(它是一个持续集成服务器)。
当从命令行 运行 时如何强制或设置此配置?
编辑:我还检查了可以使用 wget 下载文件:
wget https://dl.google.com/android/repository/repository-11.xml
再简单不过了,我不知道我是怎么错过的(-‸ლ):
./android list sdk --no-ui --no-https
--no-https
选项可以解决问题。它在操作的帮助部分中有描述:
$ ./android --help list sdk
Usage:
android [global options] list sdk [action options]
Global options:
-h --help : Help on a specific command.
-v --verbose : Verbose mode, shows errors, warnings and all messages.
--clear-cache: Clear the SDK Manager repository manifest cache.
-s --silent : Silent mode, shows errors only.
Action "list sdk":
Lists remote SDK repository.
Options:
-o --obsolete : Deprecated. Please use --all instead.
-a --all : Lists all available packages (including obsolete and
installed ones)
--proxy-host: HTTP/HTTPS proxy host (overrides settings if defined)
--proxy-port: HTTP/HTTPS proxy port (overrides settings if defined)
-s --no-https : Uses HTTP instead of HTTPS (the default) for downloads.
-e --extended : Displays extended details on each package
-u --no-ui : Displays list result on console (no GUI) [Default: true]
我正好遇到这个问题:
Android SDK installation issue - Peer not authenticated
I am trying to install the Android SDK and I get the following error in the SDK Manager Logs -
Fetching https://dl-ssl.google.com/android/repository/addons_list-1.xml Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: peer not authenticated Fetched Add-ons List successfully Fetching URL: https://dl-ssl.google.com/android/repository/repository-5.xml Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-5.xml, reason: peer not authenticated Done loading packages.
我不是代理人,我在那里找到的所有回复以及其他类似问题都是:
enable the "Force https://... sources to be fetched using http://..." setting in the SDK Manager Tools > Options menu.
但我在没有 GUI 的 CentOS 6 安装上(它是一个持续集成服务器)。
当从命令行 运行 时如何强制或设置此配置?
编辑:我还检查了可以使用 wget 下载文件:
wget https://dl.google.com/android/repository/repository-11.xml
再简单不过了,我不知道我是怎么错过的(-‸ლ):
./android list sdk --no-ui --no-https
--no-https
选项可以解决问题。它在操作的帮助部分中有描述:
$ ./android --help list sdk
Usage:
android [global options] list sdk [action options]
Global options:
-h --help : Help on a specific command.
-v --verbose : Verbose mode, shows errors, warnings and all messages.
--clear-cache: Clear the SDK Manager repository manifest cache.
-s --silent : Silent mode, shows errors only.
Action "list sdk":
Lists remote SDK repository.
Options:
-o --obsolete : Deprecated. Please use --all instead.
-a --all : Lists all available packages (including obsolete and
installed ones)
--proxy-host: HTTP/HTTPS proxy host (overrides settings if defined)
--proxy-port: HTTP/HTTPS proxy port (overrides settings if defined)
-s --no-https : Uses HTTP instead of HTTPS (the default) for downloads.
-e --extended : Displays extended details on each package
-u --no-ui : Displays list result on console (no GUI) [Default: true]