简体   繁体   English

Android SDK 管理器不显示要安装的软件包

[英]Android SDK manager does not show packages to be installed

I have installed Android SDK and packages.我已经安装了 Android SDK 和软件包。 Since I had an error when opening a new project on Eclipse, I decided to uninstall SDK and install again.由于我在Eclipse上打开一个新项目时出现错误,我决定卸载SDK并重新安装。 The problem now is that I am not seeing the packages to install, I can only see Android SDK tools.现在的问题是我没有看到要安装的包,我只能看到 Android SDK 工具。

How can I re-install it and see all the packages?如何重新安装它并查看所有软件包?

对于遇到此问题的每个人:打开SDK管理器单击顶部菜单中的工具 - >选项并打开强制h ttps://...sources

I also got the same issue when i run my SDK i was getting nothing but android SDK tools & Extras without any branches. 当我运行我的SDK时,我也遇到了同样的问题,除了没有任何分支的android SDK工具和附加功能外,我什么都没得到。 Proxy which i was using was not allowing SDK manager to download all the items. 我正在使用的代理不允许SDK管理员下载所有项目。

  • Open SDK Manager Tool -> options -> Give the proxy settings Packages -> Reload 打开SDK Manager工具 - >选项 - >提供代理设置包 - >重新加载

Above 3 steps reloaded all the package which i was longing to see for 2 days :). 以上3个步骤重新加载了我渴望看到的所有包裹2天:)。

If not for all atleast for few folks this might help 如果不适合所有至少几个人,这可能会有所帮助

Thanks Hari 谢谢哈里

For those already having this problem: 对于已经遇到此问题的人:
You maybe should change proxy settings. 您可能应该更改代理设置。

I test the proxy settings inside the SDK Manager Tool. 我测试了SDK Manager Tool中的代理设置。 But not helpful. 但没有帮助。

  • Open Java Control Panel inside control panel 在控制面板中打开Java控制面板
  • Change proxy settings under Network Settings 更改网络设置下的代理设置

The problem now is that I am not seeing the packages to install, I can only see Android SDK tools. 现在的问题是我没有看到要安装的软件包,我只能看到Android SDK工具。

Install that package first, and all the others will then appear (you may need to restart the manager). 首先安装该软件包,然后显示所有其他软件包(您可能需要重新启动管理器)。

从SDK Manager窗口中尝试此工具>选项>清除缓存,然后选择包>重新加载。

I use VPN software, so in Android Studio I went to Default Settings -> System Settings -> HTTP Proxy and checked Auto-detect proxy settings . 我使用VPN软件,所以在Android Studio中我进入默认设置 - >系统设置 - > HTTP代理并选中自动检测代理设置 It works for me. 这个对我有用。

在此输入图像描述

在Mac上:转到Android SDK MANAGER - >首选项 - >“强制http ...”

Still not find any suitable answer ? 仍然没有找到合适的答案?

Go to Package -> mark as selected all top three package 转到包 - >标记为选中所有前三个包

✓ 1-show updates/New Package ✓1-显示更新/新包装

✓ 2-show installed package ✓2-show安装包

✓ 3-show obsolete package ✓3显示过时的包装

On Windows, right click SDK Manager in android-sdk home directory and Run as administrator . 在Windows上,右键单击android-sdk主目录中的SDK Manager,然后Run as administrator That solved it for me. 这解决了我。

Run SDK Manager as an Administrator. 以管理员身份运行SDK Manager。

Do the following 2 Steps 执行以下2个步骤

  1. Right click on SDK Manager. 右键单击SDK Manager。
  2. select run as an Administrator. 选择以管理员身份运行。

To everyone having this issue, I was able to fix it by installing the required dependencies through the terminal with: 对于每个遇到此问题的人,我都可以通过终端安装所需的依赖项来修复它:

sudo apt-get install libc6-dev-i386 lib32z1 default-jdk. sudo apt-get install libc6-dev-i386 lib32z1 default-jdk。

After that, all the other API packages showed up 之后,所有其他API包都出现了

使用VPN连接谷歌服务器和获取包

在新版本的 android studio 中,转到 Tools-> sdk 工具-> android sdk-> sdk 更新站点,添加此存储库https://dl.google.com/android/repository

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM