管理器选项卡变灰

管理器选项卡变灰

本文介绍了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 的某个时刻.但是在 2.3 中已弃用的独立 SDK 管理器始终有效.使用 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,Lenovo W520 四核运行 Windows 7.行为与所有系统相同.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 管理器选项卡变灰的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 01:29