简体   繁体   中英

Genymotion Device doesn't appear on Device Chooser - Android Studio

I installed Genymotion with a virtual Box and the Genymotion plugin (Android Studio), created a new device and runs properly, even from Android Studio.

However when I hit the Run button, the Genymotion device does not appear on the Device Chooser, it says ' Nothing to Show ' under the 'Choose a running device' radio button. How can I get the Genymotion device to appear on the Device Chooser and run my app? Is it something I am missing from the SDK manager?

This happens because Genymotion is shipped with outdated Android tools. To solve follow the steps:

  • Open Genymotion app,
  • Go to Settings -> ADB
  • Select 'Use custom Android SDK tools'
  • And select location of your Android SDK.

On Mac with a recent version of Studio that would be:

/Users/username/Library/Android/sdk/

I had the same problem, but I solved it.

Before running genymotion you have to first click on run and wait until project compile and show you the empty device list and then you have to start your genymotion , after that it will appear.

  1. click the run button to compile project
  2. device empty list appear
  3. start genymotion
  4. device will appear in the list

That worked for me. Hope it helps.

Got the same issue on AS 3.3.2, I tried to select location of the Android SDK, or kill / restart the server. Still they didn't work.

After that, I install the genymotion plugin in AS and open the genymotion device manager, then check the actual ip address of the active genymotion device.

在此输入图像描述

adb connect device_ip_address:5555

Now the device can be detected on device chooser.

PS Thanks @Ismail Iqbal for pointing out that the genymotion plugin is not necessary. You can also get the ip address from the emulator header.

I also am facing the same issue in new version of Android studio. following is my routine that everyday i am doing to solve this issue:

  1. Click Run icon to see empty list of device

  2. Close this list

  3. Kill adb by:

     adb kill-server 

    Sometime you need to run this command twice.

  4. Start adb again by:

     adb start-server 
  5. Click run again. Now I will see list of my emulators but not my Genymotion that is already up and running!

  6. I will add my Genymotion by:

     adb connect 192.168.56.101 

    This command has to be run when select device dialog is still open.

Now everything will be OK.

On Android Studio 2 :

  1. Click on button " Attach debugger to Android process " on Toolbar .
  2. Click restart .
  3. Try run again.

Goodluck.

  1. Tools->Android-> Remove check "Enable ADB Integration"
  2. Run your app with appeared device.( you will get an error)
  3. Set check "Enable ADB Integration"
  4. Run your app

You can solve it quickly.

First make sure that genymotion emulator is opend.

  1. close device chooser (On andoid studio)

  2. open task manager(on windows ctrl + shift + esc)

  3. pick process tab

  4. find adb.exe maybe its adb.exe*32

  5. right click and select kill process tree

  6. adb will again appear shortly kill its process tree again( maybe more than one adb will be found kill all.)

  7. then open device chooser (click run on android studio).

在此输入图像描述 在此输入图像描述 在此输入图像描述

I solved mine by:

First start android studio before starting genymotion. Then run the app in android studio and wait until you see the device chooser then start genymotion

When you close the device, it is no longer available to the device chooser. You need to keep running the device from Android Studio.

I tried adb kill-server/start-server . But, It didn't worked.

Instead hitting this command 2-3 times quickly worked.

adb reconnect

在我的情况下没有设置genymotion路径..所以我通过单击工具栏中的genymotion图标并输入路径(Windows中的默认值为C:\\ Program Files \\ Genymobile \\ Genymotion)解决了它,然后启动模拟器后现在出现在android studio中

Just in case someone is still looking for an answer. The software versions in which i faced the
above issuue is -

Android Studio - 3.3.2
Genymotion - 3.0.1

So, now let's start with the problem. Just try the following steps:

  1. Check if you have enabled Genymotion Plugin in Android Studio. For Windows, go to
    File -> Settings -> Plugins -> Search for Genymotion and see if it is checked. If you can't find it, Click on Browse repositories , search for Genymotion and install it.

    Check the tick in the plugin:

    检查插件中的勾号

  2. Check if the Genymotion Emulator is running or not and Genymotion Main Screen shows status as Running or ON (This was my problem. Although my emulator was up and running but Genymotion's Status was showing Booting). It usually takes some time to get the status from Booting to ON

    Check for emulator status:

    检查仿真器状态

  3. Check if your Min SDK Version is less than the Emulator's SDK Version. I faced it quite a lot in my initial days. For that, Go to your Module:app gradle file and see the Min SDK Version and the Emulators SDK Version is same or higher.

    Check for Min SDK Version as highlighted in the image: **检查图像中突出显示的最小SDK版本**

Hope this helps. If you still get any problem do let me know.

首先,您必须在genymotion启动后按genymotion图标从android工作室运行genymotion然后按下运行按钮,您将在部署目标对话框中看到genymotion设备选项。

In addition to the answers of this question :

My problem was about windows viruses , Last days i turned off my windows defender and i have't any other antivirus software in my system .

My SDK folder was full of virus , when i scanned Many viruses detected .

After removing viruses from my PC i had to remove SDK completely and download it again .

Finally notice that : For any reason , if the SDK files are damaged may cause this error .

Now the problem is solved .

enter image description here For This Problem Go to Project structure/project in project SDK select simulator api version. finish.now your genydevice added in list.

I've tried from the android studio version 2.0 and the version 2.1, both does not compitable to genymotion. please use the version 1.5.1 or older than that.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM