简体   繁体   中英

Android Studio AVD Manager button is disabled

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

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.

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

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.

事件日志消息的屏幕截图

I'v solved this issue by updating gradle.

在此处输入图像描述

It is simple

The only thing that worked for me was that I clicked in Androidstudio in the top right on SDK Managar .

And there under android sdk it was so that there was no path entered. and it was also so that NO Check box was checked below. So I had to first click in the top right on Edit thereby was written to me the path pure. After that I had to select a chack box below it no matter whiche and sometimes it must then just install something. When it has finished installing click OK. It may be that you then have to close and open android studio again.

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

If you are working on Flutter, Follow the steps:

  • Open Settings in Android Studio ( CTRL ALT S )
  • Search Flutter
  • Check may path of Flutter SDK is not available.
  • Set the path and press OK.

Done Thank you

I tried the answers here, but the only solution for me was to restart my machine and it fixed itself. It happened after upgrading AS (from 4.0.2 to 4.2.2)

in android studio or intellij program:

  • goto tools > android > SDK manager
  • click on Edit (android SDK location)
  • click next and next
  • close dialog

its ok.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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