Android SDK Manager 给出“无法获取 URL https://dl-ssl.google.com/android/repository/repository.xml”选择存储库时出错

发布于 2024-09-24 20:00:24 字数 511 浏览 1 评论 0原文

我正在尝试安装一个平台,但是当我打开 Android Manager 时,我单击“可用软件”,然后选择 https://dl-ssl.google.com/android/repository/repository.xml 存储库

我收到此错误:

无法获取网址https://dl-ssl.google.com/ android/repository/repository.xml

我还尝试通过单击强制“http:”来下载设置面板上的所有“https:”下载,但它仍然没有帮助。

我正在使用 Windows Vista。

I'm trying to install a platform but when I open Android Manager then I click Available Software then select the
https://dl-ssl.google.com/android/repository/repository.xml repository

I get this error:

Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml

I have also tried downloading by clicking on force "http:" for all "https:" downloads on settings panel but it still doesn't help.

I'm working on Windows Vista.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(17

瞎闹 2024-10-01 20:00:24

尝试这个解决方案并且它有效。这个问题是因为ADB无法连接到android服务器来获取更新而引起的。 (如果在家尝试关闭防火墙)

  • 转到Android SDK Manager
    c://android-sdk-windows/ 打开
    SDK-Manager
  • 点击设置-将
    要求代理。
  • 如果有一个进入
    IP 地址和端口号。
    如果没有关闭防火墙。
  • 查看
    “强制 https://... ”(强制 SDK 管理器使用 http https

这应该立即生效。

Try this solution and it worked. this problem is caused because ADB is unable to connect to the android servers to fetch updates. (If at home try turning off firewall)

  • Goto Android SDK Manager
    c://android-sdk-windows/ open
    SDK-Manager
  • Click Settings - Will be
    asked for a proxy.
  • If have one enter
    the IP address and the port number.
    If not turn off your firewall.
  • Check
    "Force https://... " (to force SDK Manager to use http, not https)

This should work immediately.

有木有妳兜一样 2024-10-01 20:00:24

如果您在浏览器中输入 URL,然后查看页面的源代码,您将看到返回一个 XML 文档。

该 URL 在浏览器中有效但在 Android 管理器中无效的原因可能是您需要指定代理服务器。在 Eclipse (3.5.2) 中,可以在此处找到代理设置:“Window”-> “偏好设置”-> “一般”-> “网络连接”

If you enter the URL in a browser and then look at the source code of the page you will see that an XML document is returned.

The reason why that URL would work in a browser but not in the android manager might be that you are required to specify a proxy server. In Eclipse (3.5.2) the proxy settings can be found here: "Window" -> "Preferences" -> "General" -> "Network Connections"

尾戒 2024-10-01 20:00:24

对于我这个 Ubuntu 用户来说,所需要做的就是更改 ~/.android 目录的所有者。在终端中键入以下命令:

sudo chown -R username:username ~/.android

显然,您必须将“用户名”(两次)替换为您的用户名。

我不确定是否应该将此作为答案发布,因为原始发帖者的问题是关于 Windows Vista,而不是 Ubuntu。然而,我在 Ubuntu 上寻找答案时发现了这篇文章,所以我相信它是相关的。不过,我没有足够的声誉来评论 +Maher Gamal 的答案,这就是我得出这个答案的原因。希望其他人发现它有用!

All that was necessary for me, a Ubuntu user, was to change the owner of the ~/.android directory. In a terminal type the following command:

sudo chown -R username:username ~/.android

Obviously, you must replace "username" (twice) with your username.

I wasn't sure if I should post this as an answer because the original poster's question was concerning Windows Vista, not Ubuntu. However I found this post whilst searching for the answer on Ubuntu so I believe it is pertinent. I don't have sufficient reputation to comment on +Maher Gamal's answer, though, which is what lead me to this answer. Hopefully someone else finds it useful!

把回忆走一遍 2024-10-01 20:00:24

在 Mac OS X 中,解决方案是在我们的用户 .android 文件夹中创建文件 androidtool.cfg,然后添加此行。当然它也适用于 Linux

sdkman.force.http=true

我希望有帮助!

In Mac OS X, the solution is creating the file androidtool.cfg in our user .android folder and then add this line. Sure it is working also for Linux

sdkman.force.http=true

I hope that helps!

祁梦 2024-10-01 20:00:24

菜单Tools->Options

打开Android SDK Manager并打开代理设置部分中的
设置你的代理并确定

Open Android SDK Manager and open menu Tools->Options

in Proxy Setting Part
Set your proxy and ok

情话已封尘 2024-10-01 20:00:24

在我的新 Win 7 笔记本电脑上调查此错误时,我发现我的 ADT 插件丢失了。通过添加这个我解决了这个问题:
下载 ADT 插件

使用 Eclipse 安装的更新管理器功能在开发计算机上安装最新版本的 ADT。

假设您已安装兼容版本的 Eclipse IDE(如上面准备安装中所述),请按照以下步骤下载 ADT 插件并将其安装在您的 Eclipse 环境中。

启动 Eclipse,然后选择 Help >安装新软件....
单击右上角的添加。
在出现的“添加存储库”对话框中,输入“ADT Plugin”作为名称,并输入以下 URL 作为位置:
https://dl-ssl.google.com/android/eclipse/
单击“确定”

注意:如果您在获取插件时遇到问题,请尝试在位置 URL 中使用“http”,而不是“https”(出于安全原因,首选 https)。
在“可用软件”对话框中,选中“开发人员工具”旁边的复选框,然后单击“下一步”。
在下一个窗口中,您将看到要下载的工具列表。单击“下一步”。
阅读并接受许可协议,然后单击“完成”。

注意:如果您收到安全警告,指出无法确定软件的真实性或有效性,请单击“确定”。
安装完成后,重新启动 Eclipse。

Investigating this error on my new Win 7 laptop, I found my ADT plugin to be missing. By adding this I solved the problem:
Downloading the ADT Plugin

Use the Update Manager feature of your Eclipse installation to install the latest revision of ADT on your development computer.

Assuming that you have a compatible version of the Eclipse IDE installed, as described in Preparing for Installation, above, follow these steps to download the ADT plugin and install it in your Eclipse environment.

Start Eclipse, then select Help > Install New Software....
Click Add, in the top-right corner.
In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location:
https://dl-ssl.google.com/android/eclipse/
Click OK

Note: If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).
In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
In the next window, you'll see a list of the tools to be downloaded. Click Next.
Read and accept the license agreements, then click Finish.

Note: If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
When the installation completes, restart Eclipse.

书信已泛黄 2024-10-01 20:00:24

我正在使用卡巴斯基。我刚刚将其关闭,问题就解决了!

I am using Kaspersky. I just turned it off and the issue was solved!

半仙 2024-10-01 20:00:24

在尝试了网上能找到的所有方法后,我得到了 Android Studio 安装的解决方案。如果您使用 Android Studio 并收到此错误:

查找 [Path_to_Android_SDK]\sdk\tools\android.bat
就我而言,它位于 C:\Users\Nathan\AppData\Local\Android\android-studio\sdk\tools\android.bat 中。

右键单击它,点击编辑,然后一直滚动到底部。

找到其中显示的位置: call %java_exe% %REMOTE_DEBUG% ...

将其替换为 call %java_exe% -Djava.net.preferIPv4Stack=true %REMOTE_DEBUG% ...

重新启动 Android Studio/SDK,一切正常。这为我解决了许多问题,包括无法获取 XML 文件或创建新项目。

I got the solution for the Android Studio installation after trying everything that I could find on the Internet. If you're using Android Studio and getting this error:

Find [Path_to_Android_SDK]\sdk\tools\android.bat.
In my case, it was in C:\Users\Nathan\AppData\Local\Android\android-studio\sdk\tools\android.bat.

Right-click it, hit Edit, and scroll all the way down to the bottom.

Find where it says: call %java_exe% %REMOTE_DEBUG% ...

Replace that with call %java_exe% -Djava.net.preferIPv4Stack=true %REMOTE_DEBUG% ...

Restart Android Studio/SDK and everything works. This fixed many issues for me, including being unable to fetch XML files or create new projects.

习ぎ惯性依靠 2024-10-01 20:00:24

我遇到了同样的问题:最新更新无法安装,因为它无法
重命名 android-sdk-windows 中的 tools 文件夹。我正在使用 AVG 防病毒软件并且
禁用它没有帮助,但我不认为它与 AV 程序有任何关系
反正。

事实上,运行 Android SDK 设置显然使用了
“android-sdk-windows\tools”目录。我使用的是 Win Vista x32,所以这可能会导致一些问题
独特的情况 - 我不确定。

解决方案:

  • 我制作了工具文件夹本身的副本(将其保存在同一目录树中)
    级别,因此“tools”和“tools-copy”都在“android-sdk-windows”文件夹中)。

  • 我从该副本运行 Android.bat

  • 我运行更新没有出现问题(它更新了原始版本,
    暂时未使用的工具文件夹,以及它需要的其他项目)。

  • 我关闭了 SDK,删除了该文件夹(我必须先杀死 adb.exe 进程 - 不是
    确定为什么这种情况总是持续存在,但如果不这样做就无法删除该文件夹)。

  • 我从普通(现已更新)工具文件夹重新启动了 SDK。太棒了!

请注意,简单地杀死 adb.exe 不足以绕过原始的
问题...只能通过复制工具文件夹并使用该副本来运行 Android
更新过程的持续时间足以纠正问题。

我希望这对其他人有帮助...不得不花时间解决基本问题是相当令人烦恼的
像这样的问题只是为了运行更新。

I had the same problem: the latest update failed to install because it couldn't
rename the tools folder in android-sdk-windows. I'm using AVG antivirus and
disabling it didn't help, but I don't think it had anything to do with the AV program
anyway.

Fact is, running the Android SDK setup apparently uses items in the
"android-sdk-windows\tools" directory. I'm on Win Vista x32 so maybe that causes some
unique situation - I'm not sure.

Solution:

  • I made a copy of the tools folder itself (keeping it at the same directory tree
    level, thus "tools" and "tools-copy" were both in the "android-sdk-windows" folder).

  • I ran Android.bat from that copy

  • I ran the update without problems (it updated the original,
    not-being-used-at-the-moment tools folder, among whatever other items it needed to).

  • I closed the SDK, deleted the folder (I had to kill the adb.exe process first - not
    sure why that always persists but you can't delete the folder without doing that).

  • I restarted the SDK from the normal (now-updated) tools folder. Worked like a charm!

Note that simply killing adb.exe was NOT sufficient to get around the original
issue... only by copying the tools folder and using the copy to run Android for the
duration of the update process was enough to rectify the problem.

I hope this helps others... it's quite vexing to have to spend time resolving basic
issues like this just to run an update.

浅语花开 2024-10-01 20:00:24

如果您打开/Users/{您的名字}/android sdks/tools/android(双击它),然后单击“Android SDK Manager”菜单,然后单击“首选项”,然后您可以专门更改 Android SDK Manager 的代理设置。如果在 Eclipse 中使用,这些代理设置也适用于“Android SDK Manager”。

If you open /Users/{your name}/android sdks/tools/android (double click it), then click on "Android SDK Manager" menu and then "Preferences" and then you can change your proxy settings specifically for Android SDK Manager. These proxy settings also apply to "Android SDK Manager" if used within Eclipse.

悲凉≈ 2024-10-01 20:00:24

经过7个小时的漫长寻找,我终于找到了方法!
上述解决方案均无效,只有其中一个解决了问题!

如果您使用的是 Win7,则您的防火墙会阻止 SDK 管理器检索插件列表。
您必须将“android.bat”和“java.exe”添加到受信任的文件中,宾果游戏!一切都会开始工作!

After 7 long hours of searching I finally found the way!!
None of the above solutions worked, only one of them pointed towards the issue!

If you are on Win7, then your Firewall blocks the SDK Manager from retrieving the addon list.
You will have to add "android.bat" and "java.exe" to the trusted files and bingo! everything will start working!!

终难愈 2024-10-01 20:00:24

我遇到了同样的问题,做了您建议的所有解决方法:仍然是相同的错误。
我通过“帮助/检查更新”更新了 Eclipse,现在一切正常。
此次更新带来了全新版本的Android SDK Manager。

I had the same problem, made all the workarounds you advised: still the same error.
I updated Eclipse via "Help / Check for updates" and now everything is ok.
This update brought a completely new version of the Android SDK Manager.

星星的轨迹 2024-10-01 20:00:24

另外,请尝试关闭防火墙并尝试使用链接进行更新。

Also, try to turn off your firewall and try to update with link.

不知在何时 2024-10-01 20:00:24

我也有同样的问题。我使用Ubuntu 12.04。我尝试禁用 ipv6。

Modify the /etc/sysctl.conf and add the following:
#disable ipv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

然后重新启动机器并检查。我认为即使在 Windows 操作系统中这也可能是 ipv6 问题。

I had the same problem. I use Ubuntu 12.04. I tried disabling ipv6.

Modify the /etc/sysctl.conf and add the following:
#disable ipv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

Then restart the machine and check. I think this may be a ipv6 issue even in Windows OS.

べ繥欢鉨o。 2024-10-01 20:00:24

我也遇到过类似的情况,我已经设置了代理设置,但 SDK 管理器无法永久修改它们。手动修改 ~/.android/androidtool.cfg 文件解决了该问题。

I had a similar situation where I had the proxy settings already set and the SDK manager wasn't able to modify them permanently. Modifying manually the ~/.android/androidtool.cfg file fixed the issue.

梦亿 2024-10-01 20:00:24

在公司网络上的 64 位 win7 机器上有同样的问题,位于代理后面,并自动检测到设置。

经过多次试验和失败后,以下解决方法被证明是成功的:

  • 通过 USB 共享我手机的 wifi 互联网连接

谨致问候,
罗伯特

Had the same issue on 64 bit win7 machine on company network behind proxy with automatically detected settings.

After a number of trials and failures the following workaround proved to be successful:

  • sharing my phone's wifi internet connection via USB

Best regards,
Robert

涙—继续流 2024-10-01 20:00:24

我找到了另一种不设置代理的方法。我目前正在使用带有防火墙程序的防病毒软件。然后,我关闭此防火墙,现在我可以获取该 URL。

如果仍然不起作用,请尝试关闭 PC 上的防火墙,例如 Windows 防火墙。

I found another way without setting proxy. I'm currently using an antivirus which has a firewall program. Then, I turn off this firewall and now I can fetch that URL.

If still doesn't work, try to turn off Firewall on your PC, such as Windows Firewall.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文