Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio can't find runner

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

like image 524
mahtab Avatar asked Nov 24 '25 18:11

mahtab


2 Answers

For me, the reason was one of the following:

  • Gradle sync was in progress
  • Gradle sync had failed
  • Gradle build.gradle[.kts] had been modified

For the last two cases, 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

like image 196
Mahozad Avatar answered Nov 27 '25 07:11

Mahozad


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.

like image 30
Raghuveer Avatar answered Nov 27 '25 06:11

Raghuveer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!