无法获取 URL https://dl-ssl.google.com/android/repository/addons_list-1.xml,原因:与 https://dl-ssl.google.com 的连接被拒绝

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10181168/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 02:46:38  来源:igfitidea点击:

Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to https://dl-ssl.google.com refused

androidsdkfetch

提问by John Lee Hedge

Using Android SDK Manager when I try to update it just gives the following messages about not being able to connect. I've tried disabled firewall and anti malware. I also tried to run as admin and move to c:\android. I'm running windows 7 64bit. I've also tried forcing etc.

当我尝试更新它时使用 Android SDK Manager 只会给出以下关于无法连接的消息。我试过禁用防火墙和反恶意软件。我还尝试以管理员身份运行并移动到 c:\android。我正在运行 Windows 7 64 位。我也试过强迫等。

Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to refused Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to refused

无法获取 URL https://dl-ssl.google.com/android/repository/addons_list-1.xml,原因:连接被拒绝 无法获取 URL http://dl-ssl.google.com/android/repository /addons_list-1.xml,原因:连接被拒绝

回答by sagarpatidar

Follow the following steps if you are using proxy server:

如果您使用代理服务器,请按照以下步骤操作:

  1. Open Eclipse
  2. Window >> Android SDK Manager >> Option
  3. Input your proxy server and port.
  1. 打开日食
  2. 窗口 >> Android SDK 管理器 >> 选项
  3. 输入您的代理服务器和端口。

Hope this helps.

希望这可以帮助。

回答by srijan

Go to Internet Explorer, into options -> connections -> Lan settings. There should be an automatic config script option, copy the url, paste it into a browser, this downloads the config file, opened the file up in notepad and there will be a proxy address and a port number in there like 192.234.10.23:88 paste the address into the proxy field and the port (88) into the port field in the Android SDK manager Tools -> Options dialog.

转到 Internet Explorer,进入选项 -> 连接 -> 局域网设置。应该有一个自动配置脚本选项,复制 url,将其粘贴到浏览器中,这将下载配置文件,在记事本中打开该文件,其中将有一个代理地址和一个端口号,例如 192.234.10.23:88将地址粘贴到代理字段中,并将端口 (88) 粘贴到 Android SDK 管理器工具 -> 选项对话框中的端口字段中。

回答by Siva

GoTo Tools -> Options in SDK Manager. Check https to force to http and try... Worked for me

转到工具 -> SDK 管理器中的选项。检查 https 以强制使用 http 并尝试...为我工作

回答by Nathan

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:

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

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.

查找[Path_to_Android_SDK]\sdk\tools\android.bat。就我而言,它在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.

右键单击它,点击Edit,然后一直向下滚动到底部。

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

找到它说的地方: call %java_exe% %REMOTE_DEBUG% ...

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

将其替换为 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.

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

回答by Amit K Khanchandani

Run SDK Manager as Admin will solve your problem

以管理员身份运行 SDK Manager 将解决您的问题

回答by Sumit Anantwar

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!

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

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!!

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

回答by user1844638

Do the following.

请执行下列操作。

  1. Close the sdk manager and eclipse.

  2. Go to the folder where you have stored your adt.

  3. In that adt folder you'll find a folder known as tools.

  4. Make a copy of the contents of that folder and paste it in a folder called copytools.

  5. Now go to the command prompt and go to the location of the copytools.

  6. Then execute the command android.bat the sdk manager will start.

  7. Now update all the plugins you want. It'll update your original folder.

  8. After the update delete the copy.

  1. 关闭 sdk 管理器和 eclipse。

  2. 转到您存储广告的文件夹。

  3. 在该 adt 文件夹中,您将找到一个称为工具的文件夹。

  4. 复制该文件夹的内容并将其粘贴到名为 copytools 的文件夹中。

  5. 现在转到命令提示符并转到 copytools 的位置。

  6. 然后执行命令 android.bat sdk 管理器将启动。

  7. 现在更新你想要的所有插件。它会更新您的原始文件夹。

  8. 更新后删除副本。

Enjoy. Hope this helps.

享受。希望这可以帮助。

回答by varun

I was facing same problem below is the solution that worked for me

我在下面面临同样的问题是对我有用的解决方案

First Go to Android SDK Manager then

首先转到 Android SDK Manager 然后

select Tools then,

然后选择工具,

select Options

选择选项

then check the box "Force https://... sources to be fetched using http://..."

然后选中“强制 https://... 使用 http://... 获取源”框

hope it will help you also.

希望它也能帮助你。

回答by Flox

As srijan said,

正如斯里詹所说,

Check your actual proxy settings, if you are using a proxy script to access the web, it might be (by default) : proxy serveur: proxy / proxy port: 8080

检查您的实际代理设置,如果您使用代理脚本访问网络,它可能是(默认情况下):代理服务器:代理/代理端口:8080

You may have these informations in Inter Explorer, Options, Connexions settings .. Worked for me

您可能在 Inter Explorer、Options、Connexions 设置中有这些信息.. 为我工作

You may also need to add rules to your firewall/antivirus.

您可能还需要向防火墙/防病毒软件添加规则。

回答by Oseack

If you are on Windows 7, simply run Eclipse with Admin privilege will solve this issue.

如果您使用的是 Windows 7,只需以管理员权限运行 Eclipse 即可解决此问题。

Just tried this on my Windows 7 64bits OS.

刚刚在我的 Windows 7 64 位操作系统上尝试过这个。