Android Studio 2.3 sdk管理器选项卡显示为灰色 [英] Android Studio 2.3 sdk manager tabs grayed out

查看:760
本文介绍了Android Studio 2.3 sdk管理器选项卡显示为灰色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android Studio 2.3->配置-> SDK管理器. 这些选项卡显示为灰色: SDK工具,SDK更新站点.同样,复选框显示软件包详细信息"显示为灰色. 系统正常更新.没有错误消息.

Android Studio 2.3 --> Configure -> SDK Manager. These tabs are grayed out: SDK Tools, SDK Update Sites. Also, checkbox "Show Package Details" is grayed. The system updates normally. There are no error messages.

我认为这是在Studio 2.2上发生的.但是独立的SDK管理器(一直不支持2.3)始终可以正常工作.使用2.3,我可以更新其中的内容,但是无法安装/删除软件包.

I think this happened at some point with Studio 2.2. But the standalone SDK manager, which has been deprecated with 2.3, always worked. With 2.3, I can update what is there, but I cannot install/delete packages.

我查看了以前的一些类似错误的报告.我已经尝试过:

I reviewed some of the previous reports of similar errors. I have tried:

  1. 创建项目,以便让Gradle找到SDK等.
  2. 擦除安装,包括SDK,然后从头开始重新安装.
  3. 以管理员身份运行.
  4. 恢复到早期的Java:8/101和8/92.

没有任何区别.硬件为Intel Xeon 6或8核心/Windows 8.1,以及运行Windows 7的Lenovo W520四核.行为与所有系统相同. Java是版本8/121.

Nothing makes any difference. The hardware is Intel Xeon 6 or 8 core /Windows 8.1, and Lenovo W520 quadcore running Windows 7. Behavior is identical with all the systems. Java is version 8/121.

似乎有sdk的两个安装, 1.在c:/Users/username/AppData/Local/Android/Sdk中,大小为1.42GB. 2.另一个位于C:/Android/sdk,大小为4.47GB

It appears that there are two installations of the sdk, 1. in c:/Users/username/AppData/Local/Android/Sdk, size 1.42GB. 2. another in C:/Android/sdk, size 4.47GB

本地"中的sdk越来越新. C:中的一个年龄更大且更大.

The sdk in "Local" is newer and smaller. The one in C: is older and larger.

虽然将位置设置为c:/Users/username/AppData/Local/Android/Sdk允许sdk管理器运行,但尚无法解释为什么sdk管理器希望看到较旧的安装.

While setting the location to c:/Users/username/AppData/Local/Android/Sdk allows the sdk manager to run, it leaves unexplained why the sdk manager wants to see the older installation.

推荐答案

我想我有答案. Android Studio Bundle安装程序会将sdk安装到C:/Android/sdk.但是,首次运行安装向导会将sdk安装到c:/Users/username/AppData/Local/Android/Sdk.

I think I have the answer. The Android Studio Bundle installer installs the sdk to C:/Android/sdk. But the first-run install wizard installs the sdk to c:/Users/username/AppData/Local/Android/Sdk.

在全新安装中,解决方法是将首次运行向导的sdk路径更正为C:/Android/sdk.该向导提供了一个对话框来执行此操作.在单击继续"之前先进行操作,一切都很好.

On a clean install, the fix is to correct the first-run-wizard sdk path to C:/Android/sdk. The wizard provides a dialog box to do this. Do it before you click "continue", and everything is fine.

但这是一个相当大的错误.显然,开发人员依靠复杂的工具,而不必为最终的端到端检查而烦恼.

But this is a pretty massive error. Apparently, the developers rely on sophisticated tools, without bothering with a final end-to-end check.

这篇关于Android Studio 2.3 sdk管理器选项卡显示为灰色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆