简体   繁体   English

在Android Studio中禁用虚拟设备管理器

[英]Virtual Device Manager Disabled in Android Studio

I have installed Android Studio on my Windows 7 PC. 我在Windows 7 PC上安装了Android Studio。 But I cannot create the virtual devices on the studio as the button for AVD and SDK is disabled by default. 但我无法在工作室上创建虚拟设备,因为默认情况下禁用AVD和SDK按钮。 How ca I enable them? 我如何启用它们?

I haven't seen this error myself, but try going to File -> Project Structure -> SDKs and make sure you have a listing for the Android SDK and that the home path is pointing to the correct location. 我自己没有看到这个错误,但是尝试转到File -> Project Structure -> SDKs并确保您有Android SDK的列表,并且主路径指向正确的位置。

例

Well I found the problem. 好吧,我发现了问题。 The gradle was not installed as my internet connection was not active. 由于我的互联网连接未激活,因此未安装gradle Make sure the Android Studio installs the gradle when you first start and create a project. 首次启动并创建项目时,请确保Android Studio安装了gradle

Go to the android-studio\\sdk\\tools\\lib and search for AVD Manager and SDK Manager. 转到android-studio \\ sdk \\ tools \\ lib并搜索AVD Manager和SDK Manager。 If they are present, try running them. 如果它们存在,请尝试运行它们。

While I do not know the actual reason for the disabled buttons, but this might just help in troubleshooting the problem. 虽然我不知道禁用按钮的实际原因,但这可能只是帮助解决问题。

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

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