I cloned a project from git and built it in android studio without any problems but I don’t have (Run app) in android studio and also when I run run-android I get this error:
Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`
but I can run my emulator from AVD manager!
I did every solutions that I found with search but they didn’t work for me
3
Answers
I faced a similar error. I was trying to import a built apk to profile it and ran into the scenario where the run button was grayed out.
Ultimately what worked. I went to
File > Manage IDE Settings > Restore default settings..
and redid theandroid studio
setup.Note: Doing this will RESET the entire
Android Studio
and redownload everything.For me, the reason was one of the following:
For the second case, go to your top-level or app build file and click
Try again
orSync
button on the notification shown at the top of the file.You could also just try to sync the IDE with Gradle with either of these buttons:
1- Give the SDK path (to find the emulator path), Usually in UserYourUsernameAppData (is hidden by default)LocalAndroidSdk. in File->Project structure, SDK location. Also the JavaJdk path for (JDKs) and the path "…javautilconcurrent" exist
Do not reset the IDE Settings (because you need to reinstall a lot of things and it will not solve)
2 possibility – from File->Setting->Tools->Emulator to check the Launch in a tool window
3 possibility –