简体   繁体   English

Android SDK Manager未显示要安装的任何软件包

[英]Android SDK Manager not showing any packages to install

I'm having a problem in the Android SDK Manager in which it doesn't show that I have any packages available to install: 我在Android SDK Manager中遇到问题,它没有显示我有任何可用于安装的软件包:

SDK PM

When I first installed the SDK, the only line I saw there was the Android SDK Tools. 当我第一次安装SDK时,我看到的唯一一条线就是Android SDK工具。 I was able to add the Platform-Tools and Android 4.2 package my copying and pasting from the Android ADT bundle that I downloaded separately. 我能够从我单独下载的Android ADT软件包中添加Platform-Tools和Android 4.2软件包进行复制和粘贴。

The log is showing no issues: 日志显示没有问题:

Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml
Fetched Add-ons List successfully
Fetching URL: https://dl-ssl.google.com/android/repository/repository-7.xml
Done loading packages.

And I can see available packages when I open up the XML the package URL returns. 当我打开包返回的XML时,我可以看到可用的包。

Things I've tried: 1. Messing with the proxy in Tools > Options. 我尝试过的事情:1。在工具>选项中使用代理进行混乱。 I've tried both 127.0.0.1 and blank. 我已经尝试了127.0.0.1和空白。 2. Opening the SDK Manager from Eclipse and directly (regular and as Administrator) 3. Uninstalling and re-installing the Android SDK. 2.从Eclipse打开SDK Manager并直接(常规和管理员)3。卸载并重新安装Android SDK。 Downloading the latest versions of everything. 下载所有内容的最新版本。

My system: Windows 7 x64 Eclipse 4.2.1 Juno SDK Manager 21.1 ADT 21.1 我的系统:Windows 7 x64 Eclipse 4.2.1 Juno SDK Manager 21.1 ADT 21.1

Any ideas? 有任何想法吗? I suppose I could download the files by pulling URLs directly from the XML, but that isn't ideal. 我想我可以通过直接从XML中提取URL来下载文件,但这并不理想。

Edit: 编辑:

Since I can pull the repository-7.xml file using a browser, this doesn't look like a Firewall/AV/Network setup issue. 由于我可以使用浏览器提取repository-7.xml文件,因此这看起来不像防火墙/ AV /网络设置问题。 It's a matter of the SDK Manager not loading up the package information it pulls back through the XML. 这是SDK Manager无法加载它通过XML提取的包信息的问题。

I got the same problem. 我遇到了同样的问题。 For me the solution was putting a check on the "Force https://... sources to be fetched using http://..." box. 对我来说,解决方案是检查“强制https:// ...使用http:// ...获取源”框。 It's on Android SDK Manager's preferences screen, below the proxy settings. 它位于Android SDK Manager的首选项屏幕上,位于代理设置下方。

Also if this doesn't solve your problem, instead of downloading SDK again, I suggest you to download the Adt Bundle 此外,如果这不能解决您的问题,我建议您下载Adt Bundle ,而不是再次下载SDK

So I was finally able to see all of the available packages. 所以我终于能够看到所有可用的包。 I accidentally hit the SDK Manager icon in Eclipse instead of the AVD Manager I meant to press: 我不小心点击了Eclipse中的SDK Manager图标,而不是我要按的AVD Manager:

日食

And all of the available packages showed up. 并且所有可用的包都出现了。

Also, now when I open the SDK Manager using any of the other methods (directly from SDK directory or using the Window > Android SDK Manager menu option in Eclipse) all of those missing packages are now showing up. 此外,现在当我使用任何其他方法(直接来自SDK目录或使用Eclipse中的Window> Android SDK Manager菜单选项)打开SDK Manager时,所有这些缺失的包现在都会显示出来。

i had the same problem. 我有同样的问题。 and nothing works for me, nor clearing cache, nor restart eclipse, nor running sdk manager from eclipse, nor forcing https (from sdk manager options) 没有什么对我有用,也没有清除缓存,也没有重启eclipse,也没有从eclipse运行sdk管理器,也没有强制https(来自sdk manager选项)

but every thing works fine when i used proxy!! 但是当我使用代理时,每件事情都很好! sdk manager-> tools-> options -> http proxy server sdk manager-> tools-> options - > http代理服务器

I know that I'm kind of late to the party, But I wanted to share my experience with this issue. 我知道我有点迟到了,但我想分享我对这个问题的经验。

It turned out that the underlying Logger module used was the SL4J Android edition. 事实证明,使用的基础Logger模块是SL4J Android版。 Because I had overridden the version (using an external JAR file) that the SDK Manager used, a lot of things went wrong when it tried to load the Logger class. 因为我已经覆盖了SDK Manager使用的版本(使用外部JAR文件),所以在尝试加载Logger类时出现了很多问题。 I discovered this when i tried to run 我试图跑的时候发现了这个

android-sdk\\tools\\android.bat update sdk --no-ui android-sdk \\ tools \\ android.bat更新sdk --no-ui

which showed me an exception thrown by the ClassLoader of the logger module. 这向我展示了记录器模块的ClassLoader引发的异常。 Removing every trace I had of the SL4J modules in my %JAVA_HOME%\\jre\\lib\\ext folder solved ALL of my problems. 删除我的%JAVA_HOME%\\ jre \\ lib \\ ext文件夹中的SL4J模块的每条跟踪都解决了我的所有问题。

I know this is old, but just wanted to add for posterity. 我知道这是旧的,但只是想为后代添加。 I had this same problem and it turns out I had previously ran the SDK Manager as root (Ubuntu Linux). 我遇到了同样的问题,事实证明我之前以root身份运行了SDK Manager(Ubuntu Linux)。 My user account didn't have permissions to overwrite the files and update the list. 我的用户帐户无权覆盖文件并更新列表。 Once I corrected the permissions, it ran fine. 一旦我更正了权限,它运行正常。

On Windows, if you are running the SDK Manager directly from ~Android\\android-sdk directory, just right click and Run as administrator. 在Windows上,如果您直接从~Android\\android-sdk目录运行SDK Manager,只需右键单击并以管理员身份运行。 That did the trick for me anyway. 无论如何,这对我来说是个伎俩。

Are you opening the Adroid SDK when you unzipped the folder downloaded?. 解压缩下载的文件夹时,您是否打开了Adroid SDK? Becouse i had a problem like you, and the solution was that i am taking a wrong folder path. Becouse我有一个像你这样的问题,解决方案是我采取了错误的文件夹路径。

What i did: 我做了什么:

  • Downloaded again the sdk and put it in C:/ (Another Path) 再次下载sdk并将其放入C:/(Another Path)
  • Check in this path if i get the same result. 如果我得到相同的结果,请检查此路径。
  • install the new tools and android version from the new path. 从新路径安装新工具和Android版本。

becouse i see that u have your folder in C:/ProgramFile/Android......... and i have in this path only that i have installed. 因为我看到你在C:/ ProgramFile / Android .........中有你的文件夹,我在这条路径中只有我已安装。

打开Android SDKManager-> Android SDK-> SDK更新站点单击启动独立Android SDK Manager,您将看到这些包。

On SDK manager go to tools -> options and select force https checkbox; 在SDK管理器上,转到工具 - >选项,然后选择强制https复选框; now you should see all 现在你应该看到所有

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

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