Android Studio AVD Manager button is disabled

梦想的初衷 提交于 2019-12-03 18:38:02

问题


I'm very new to Android development and have never used Android Studio before. I set it up, got my app working on my phone and left it alone for a few weeks. Upon returning, I could not find the Android Studio executable on my computer, so I reinstalled it and restarted on the same project.

Not sure if this has to do with the AVD Manager button being grayed out. Things I have tried:

  1. Making sure my SDK path is correct
  2. Running Android Studio as administrator
  3. Launching the AVD Manager executable from windows. I can create a virtual device but doesn't affect disabled AVD Manager button when restarting Android Studio.
  4. Installing Intel X86 Atom System Image and Google APIs in SDK Manager, under API 24.Everything under API 25 is installed.

Any help is appreciated. Thank you!


回答1:


This generally happens when Android Studio is not able identify the android sdk installation in the machine. This could happen if Android Studio is launched in non-Administrator mode.

Just close and relaunch Android Studio in administrator mode. You will see a saying "android framework is identified" Click on the configure link on that notification. The AndroidStudio will start configuring the android sdk. After some time the buttons would be visible and enabled.




回答2:


If you tried running the Android Studio in administrator mode and it still do not work for you try the following way.

  1. Delete the .idea folder in the project
  2. Re open the project from going to File->Open Recent->
  3. Then you will be asked to convert the project
  4. Click convert



回答3:


For anyone seeing this problem following the React Native tutorial make sure to click the "Configure" button in the Event Log next to the log text that reads "Frameworks detected: Android framework is detected in the project"

This action seems to be what configures the project to be an Android project.




回答4:


I'v solved this issue by updating gradle.




回答5:


I was having this issue on a new machine running MacOS High Sierra.

After installing Android Studio and the most recent SDK/ SDK Tools, I was unable to create any AVD from Android Studio (button greyed out, no option under Tools) or run the AVD Manager any other way.

I tried the same things the OP had done, then noticed I was getting the following error: Gradle sync failed: Failed to find Build Tools revision 26.0.2

From the Event Log I followed a link to download the Build tools and now it works!



来源:https://stackoverflow.com/questions/41290134/android-studio-avd-manager-button-is-disabled

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!