Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android studio: emulator is running but not showing up in Run App "choose a running device"

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

like image 751
MagTun Avatar asked Mar 22 '15 18:03

MagTun


People also ask

Why Android Studio is not running the app?

Unplug your device from the USB port on the computer. Restart the device by powering off and back on. Verify that Settings => Developer options => USB Debugging is enabled. Quit and re-launch Android Studio.

Can apps detect Android Emulator?

There is no official API in iOS or Android to detect an emulator. Therefore, several proprietary checks have to be done by the RASP system.

How do you bypass an app's ability to know is being run on an emulator rather than a real device?

In general there are three ways to bypass an emulator check: Modify the app and remove the emulator check. Modify the emulator so that it pretends to be a real device. Modify the system calls the app does for detecting it is running on an emulator.

How do I run an app from an emulator?

Run on an emulatorIn Android Studio, create an Android Virtual Device (AVD) that the emulator can use to install and run your app. In the toolbar, select your app from the run/debug configurations drop-down menu. From the target device drop-down menu, select the AVD that you want to run your app on. Click Run .


2 Answers

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.

like image 103
Mohammad Arman Avatar answered Oct 17 '22 07:10

Mohammad Arman


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

  • In Android Studio go to Menu -> Tools
  • Android
  • Uncheck Enable ADB Integration
like image 30
MagTun Avatar answered Oct 17 '22 07:10

MagTun