Genymotion设备不会出现在设备选择器——Android Studio上

时间:2023-02-09 20:55:21

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

我为Genymotion安装了一个虚拟盒子和Genymotion插件(Android Studio),创建了一个新设备,并正常运行,甚至从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?

然而,当我点击运行按钮时,设备选择器上不会出现Genymotion设备,它会在“选择运行设备”单选按钮下显示“没有显示”。如何让Genymotion设备出现在设备选择器上并运行我的应用程序?这是我在SDK管理器中丢失的东西吗?

11 个解决方案

#1


145  

Ok, solution found.

好的,找到解决方案。

Reason : Problem occurs because Genymotion is shipped with outdated Android tools.

原因:出现问题是因为Genymotion附带了过时的Android工具。

Solution : To solve this, follow the following steps.

解决方案:要解决这个问题,请遵循以下步骤。

  1. open Genymotion app,
  2. 打开Genymotion应用,
  3. go to Settings -> ADB
  4. 转到Settings -> ADB
  5. select 'Use custom Android SDK tools'
  6. 选择“使用自定义Android SDK工具”
  7. and select location of your SDK.
  8. 并选择SDK的位置。

On Mac with recent version of Studio that would be:

在Mac上,最新版本的Studio是:

/Users/username/Library/Android/sdk/

#2


34  

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.

在运行genymotion之前,您必须先单击run,直到项目编译并显示空设备列表,然后您必须启动genymotion,然后它将出现。

  1. click the run button to compile project
  2. 单击run按钮来编译项目
  3. device empty list appear
  4. 设备空列表出现
  5. start genymotion
  6. 开始genymotion
  7. device will appear in the list
  8. 设备将出现在列表中

That worked for me. Hope it helps.

为我工作。希望它可以帮助。

#3


5  

On Android Studio 2 :

Android Studio 2:

  1. Click on button "Attach debugger to Android process" on Toolbar.
  2. 在工具栏上点击“附加调试器到Android程序”。
  3. Click restart.
  4. 点击重启。
  5. Try run again.
  6. 尝试再次运行。

Goodluck.

古德勒克。

#4


5  

  1. Tools->Android-> Remove check "Enable ADB Integration"
  2. 工具->Android->移除“启用ADB集成”检查
  3. Run your app with appeared device.( you will get an error)
  4. 使用出现的设备运行你的应用程序。(你会得到一个错误)
  5. Set check "Enable ADB Integration"
  6. 设置检查“启用ADB集成”
  7. Run your app
  8. 运行您的应用程序

#5


2  

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:

在新版Android studio中,我也面临着同样的问题。以下是我每天为解决这个问题所做的例行工作:

  1. Click Run icon to see empty list of device

    单击Run图标查看设备的空列表

  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!

    再次单击“运行”。现在我将看到我的模拟器的列表,但不是已经启动并运行的Genymotion !

  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.

现在一切都会好的。

#6


1  

You can solve it quickly.

你可以很快地解决它。

First make sure that genymotion emulator is opend.

首先,确保genymotion模拟器是opend的。

  1. close device chooser (On andoid studio)

    关闭设备选择器(在andoid studio上)

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

    打开任务管理器(在windows ctrl + shift + esc上)

  3. pick process tab

    选择进程选项卡

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

    找到亚行。exe也许adb.exe * 32

  5. right click and select kill process tree

    右键单击并选择kill进程树

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

    很快,adb将再次出现,再次杀死它的进程树(可能会发现不止一个adb将杀死所有进程树)。

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

    然后打开设备选择器(在android studio上单击run)。

Genymotion设备不会出现在设备选择器——Android Studio上 Genymotion设备不会出现在设备选择器——Android Studio上 Genymotion设备不会出现在设备选择器——Android Studio上

#7


0  

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

当您关闭设备时,设备选择器将不再可用。你需要继续运行Android Studio中的设备。

#8


0  

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

在启动genymotion之前,先启动android studio。然后在android studio中运行这个应用程序,直到你看到设备选择器,然后启动genymotion

#9


0  

First you will have to run the genymotion from the android studio by pressing the genymotion icon after genymotion starts then press the run button, you will see the genymotion device option on deployment target dialog box.

首先,你必须在启动genymotion后按下genymotion图标,从android studio运行genymotion,然后按下run按钮,你会在部署目标对话框中看到genymotion设备选项。

#10


0  

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

我试着亚行kill-server /启动服务器。但是,它没有工作。

Instead hitting this command 2-3 times quickly worked.

相反,点击这个命令2-3次会很快奏效。

adb reconnect

#11


-2  

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.

我尝试过android studio 2.0和2.1版本,这两个版本都不能与genymotion兼容。请使用版本1.5.1或以上版本。

#1


145  

Ok, solution found.

好的,找到解决方案。

Reason : Problem occurs because Genymotion is shipped with outdated Android tools.

原因:出现问题是因为Genymotion附带了过时的Android工具。

Solution : To solve this, follow the following steps.

解决方案:要解决这个问题,请遵循以下步骤。

  1. open Genymotion app,
  2. 打开Genymotion应用,
  3. go to Settings -> ADB
  4. 转到Settings -> ADB
  5. select 'Use custom Android SDK tools'
  6. 选择“使用自定义Android SDK工具”
  7. and select location of your SDK.
  8. 并选择SDK的位置。

On Mac with recent version of Studio that would be:

在Mac上,最新版本的Studio是:

/Users/username/Library/Android/sdk/

#2


34  

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.

在运行genymotion之前,您必须先单击run,直到项目编译并显示空设备列表,然后您必须启动genymotion,然后它将出现。

  1. click the run button to compile project
  2. 单击run按钮来编译项目
  3. device empty list appear
  4. 设备空列表出现
  5. start genymotion
  6. 开始genymotion
  7. device will appear in the list
  8. 设备将出现在列表中

That worked for me. Hope it helps.

为我工作。希望它可以帮助。

#3


5  

On Android Studio 2 :

Android Studio 2:

  1. Click on button "Attach debugger to Android process" on Toolbar.
  2. 在工具栏上点击“附加调试器到Android程序”。
  3. Click restart.
  4. 点击重启。
  5. Try run again.
  6. 尝试再次运行。

Goodluck.

古德勒克。

#4


5  

  1. Tools->Android-> Remove check "Enable ADB Integration"
  2. 工具->Android->移除“启用ADB集成”检查
  3. Run your app with appeared device.( you will get an error)
  4. 使用出现的设备运行你的应用程序。(你会得到一个错误)
  5. Set check "Enable ADB Integration"
  6. 设置检查“启用ADB集成”
  7. Run your app
  8. 运行您的应用程序

#5


2  

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:

在新版Android studio中,我也面临着同样的问题。以下是我每天为解决这个问题所做的例行工作:

  1. Click Run icon to see empty list of device

    单击Run图标查看设备的空列表

  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!

    再次单击“运行”。现在我将看到我的模拟器的列表,但不是已经启动并运行的Genymotion !

  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.

现在一切都会好的。

#6


1  

You can solve it quickly.

你可以很快地解决它。

First make sure that genymotion emulator is opend.

首先,确保genymotion模拟器是opend的。

  1. close device chooser (On andoid studio)

    关闭设备选择器(在andoid studio上)

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

    打开任务管理器(在windows ctrl + shift + esc上)

  3. pick process tab

    选择进程选项卡

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

    找到亚行。exe也许adb.exe * 32

  5. right click and select kill process tree

    右键单击并选择kill进程树

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

    很快,adb将再次出现,再次杀死它的进程树(可能会发现不止一个adb将杀死所有进程树)。

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

    然后打开设备选择器(在android studio上单击run)。

Genymotion设备不会出现在设备选择器——Android Studio上 Genymotion设备不会出现在设备选择器——Android Studio上 Genymotion设备不会出现在设备选择器——Android Studio上

#7


0  

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

当您关闭设备时,设备选择器将不再可用。你需要继续运行Android Studio中的设备。

#8


0  

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

在启动genymotion之前,先启动android studio。然后在android studio中运行这个应用程序,直到你看到设备选择器,然后启动genymotion

#9


0  

First you will have to run the genymotion from the android studio by pressing the genymotion icon after genymotion starts then press the run button, you will see the genymotion device option on deployment target dialog box.

首先,你必须在启动genymotion后按下genymotion图标,从android studio运行genymotion,然后按下run按钮,你会在部署目标对话框中看到genymotion设备选项。

#10


0  

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

我试着亚行kill-server /启动服务器。但是,它没有工作。

Instead hitting this command 2-3 times quickly worked.

相反,点击这个命令2-3次会很快奏效。

adb reconnect

#11


-2  

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.

我尝试过android studio 2.0和2.1版本,这两个版本都不能与genymotion兼容。请使用版本1.5.1或以上版本。