39
votes

I have launched my emulator via the AVD manager and once it's running I have clicked on run app. I have waited a couple of minutes for my running device to show up in choose a running device but the window always stays blank.

enter image description here

14

14 Answers

44
votes

Probably the project you are running is not compatible (API version/Hardware requirements) with the emulator settings. Check in your build.gradle file if the targetSDK and minimumSdk version is lower or equal to the sdk version of your Emulator.

You should also uncheck Tools > Android > Enable ADB Integration

If your case is different then restart your Android Studio and run the emulator again.

14
votes

This thread helped me to solve my problem, in particular this answer:

  • In Android Studio go to Menu -> Tools
  • Android
  • Uncheck Enable ADB Integration
3
votes

Had similar issue with my emulator. Solved by Wiping Data of emulator

Tool > ABD Manager > Down arrow under Action Wipe Data

Note : This is remove all data inside emulator.

2
votes

For anyone else having the issue - none of the answers provided worked for me.

My case may be different to others but I had Android Studio installed first which installs the SDK by default to: C:\Users\[user]\AppData\Local\Android\sdk. We then decided to use Xamarin for our projects, so Xamarin was installed and installed an additional SDK by default, located here: C:\Program Files (x86)\Android\android-sdk.

Changing Xamarin to match the same SDK path worked for me which I did in the registry (although through the VS settings I'd guess it's the same):

\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Android SDK Tools\Path

Change the path to match the Android Studio SDK path, close everything, start the VS Emulator, run Android Studio, ensure ADB integration is off and try. It worked for me.

1
votes

If you uncheck the ADB Integration, you cannot use the debug any more.You may just restart the adb server, run

$adb kill-server
$adb start-server

in Terminal to restart the adb server without restarting the Android Studio. Then the emulator shows up.

1
votes

My emulator used to suddenly disappear but the app still continues to run.

Solution- Open task manager and kill qemu-system (Under Android Studio). This will stop the emulator. Then restart emulator.

0
votes

Your adb connection is broken.

close eclipse

open cmd-prompt type adb kill-server then adb start-server

reopen eclipse

run the project!

0
votes

Wipe the data of your Android virtual Device and then start the emulator. Works for me.

0
votes

This worked for me on Android studio 4+ and Mac OS

  1. Delete all AVD's that you currently have.
  2. Go to Preferences > Appearance & Behavior > System Settings > Android SDK > SDK Tools
  3. Uninstall Android Emulator
  4. Restart Android Studio.
  5. Re-install Android Emulator from the same place.
  6. Create a new emulator!
-1
votes

try to open the emulator and run it parallel with android studio/eclipse and the option will be displayed to select in the choose the device(emuator name, mine is Genymotion).

-1
votes

Check the android path of the emulator.

I had to change the registry in here:

 HKEY_LOCAL_MACHINE > SOFTWARE > WOW6432Node > Android SDK Tools

to the actual path of the sdk location (which can be found in android studio: settings-> System Settings -> Android SDK)

All the credit goes to the author of this blogpost www.clearlyagileinc.com/

-1
votes

This answer is not proposing a solution. Just a workaround in case someone is looking

I am using Idea based Android Studio (some people are talking about eclipse one here)

When I launch the app in the emulator (using the Run App button of Android Studio) AVD shows up but the app does not launch or run.

However when I connect my mobile and launch the app on my mobile the App works (this itself took some time, enabling developer options on mobile and doing the right configuration)

  • Because My app is launching on connected mobile, I can say nothing wrong with App.
  • There is some problem with AVD integration which I could not figure out so As of now I am working around my problem following way.

1 - I installed the app manually by dragging the APK file on AVD. (APK file is app\build\outputs\apk\debug folder)

2 - Then my AVD was not showing the installed APP list. 3 - I searched my APP using Google bar on AVD and dragged the APP icon on the home screen of AVD.

4 - I can now launch the APP using my APP icon on the home screen of AVD.

**That's how I am working around my problem. **

I have verified that Run App Icon does install the Application. Installation, not launching, appears to be the problem for me.

-2
votes
  1. start device from genymotion button (have to install genymotion before and setup genymotion folder location on settings)
  2. run application
  3. choose genymotion running device
-6
votes

in your device you want to run app on Go to settings About device >> Build number triple clicks or more and back to settings you will found "Developer options" appear go to and click on "USB debugging" Done