skip to Main Content

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

enter image description here

3

Answers


  1. 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 the android studio setup.
    Note: Doing this will RESET the entire Android Studio and redownload everything.

    Login or Signup to reply.
  2. For me, the reason was one of the following:

    • Gradle sync was in progress
    • Gradle sync had failed

    For the second case, go to your top-level or app build file and click Try again or Sync 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:

    Syncing IDE with Gradle

    Login or Signup to reply.
  3. 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 –

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search