简体   繁体   English

Android SDK和AVD Manager未列出SDK平台

[英]Android SDK and AVD Manager not listing SDK Platforms

I am just getting set up to do Android app dev using Eclipse 3.6 on Windows, and am following the instuctions at developer.android.com/sdk/adding-components.html. 我刚刚准备好在Windows上使用Eclipse 3.6进行Android应用开发,并遵循developer.android.com/sdk/adding-components.html上的说明。

When I open the repository at http://dl-ssl.google.com/android/repository/repository.xml , only 7 packages are found: 6 are "Google APIs" and 1 is the "Usb Driver package". 当我通过http://dl-ssl.google.com/android/repository/repository.xml打开存储库时,仅找到7个软件包:6个是“ Google API”,1个是“ Usb Driver软件包”。

There are no "SDK Platforms Android" listed! 没有列出“ SDK平台Android”! Therefore, I can't install a platform. 因此,我无法安装平台。

When I look at the XML in a browser, it looks like there are platforms in it, but the "Android SDK and AVD Manager" is not displaying them. 当我在浏览器中查看XML时,看起来其中包含平台,但是“ Android SDK和AVD Manager”未显示它们。

(Thanks, ranjanarr, but I already checked that.) (谢谢,ranjanarr,但是我已经检查过了。)

I found a solution to this problem: launch the "Android SDK and AVD Manager" from the "SDK Setup.exe" application file (this is Windows), instead of launching it inside Eclipse. 我找到了解决此问题的方法:从“ SDK Setup.exe”应用程序文件(这是Windows)启动“ Android SDK和AVD管理器”,而不是在Eclipse中启动它。 When you do that, it works correctly. 当您这样做时,它可以正常工作。

Also, when I did this, I suddenly had access to the "Settings" window, which isn't there when I launch it from Eclipse. 另外,当我这样做时,我突然可以访问“设置”窗口,当我从Eclipse启动它时,该窗口不存在。 This allowed me to check the box for forcing it to use "http" instead of "https". 这使我可以选中强制使用“ http”而不是“ https”的框。

Then, after that, I closed the SDK Manager, restarted Eclipse, and launched the SDK Manager from Eclipse, and now all of the packages are listed correctly. 然后,在那之后,我关闭了SDK Manager,重新启动Eclipse,并从Eclipse启动了SDK Manager,现在正确列出了所有软件包。 (I still don't have access to the Settings page when I launch it this way, however.) (但是,以这种方式启动时,我仍然无权访问“设置”页面。)

Open eclipse, preference>android>see if you have added the sdk location path. 打开eclipse,首选项> android>查看是否已添加sdk位置路径。 SDK location is the location where you have downloaded and extracted the folder to. SDK位置是您将文件夹下载并提取到的位置。 After that, you will have to "force add" the APIs. 之后,您将必须“强制添加” API。 Not sure if it is any close to your question. 不知道这是否接近您的问题。

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

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