简体   繁体   English

Android Studio 看不到 genymotion

[英]Android Studio doesn't see genymotion

I updated 0.5 to 0.8.14 version of android studio , but now studio doesn't see genymotion , what I must do now ?我将 android studio 的 0.5 版本更新为 0.8.14 版本,但现在 studio 没有看到 genymotion ,我现在必须做什么? Thanks for all .谢谢大家。

Edit :I solved the problem by updating genymotion too编辑:我也通过更新 genymotion 解决了这个问题

Genymotion by default uses it's own ADB binary. Genymotion 默认使用它自己的 ADB 二进制文件。 If it has a different version than the one Android Studio is using, they can conflict and you get lots of issues.如果它的版本与 Android Studio 使用的版本不同,它们可能会发生冲突,并且您会遇到很多问题。 One of them can be Genymotion not being detected, and problems deploying apps.其中之一可能是未检测到 Genymotion,以及部署应用程序出现问题。

I would recommend setting Genymotion to use the ADB/Android SDK that Android Studio is also using, instead of using the default one.我建议将 Genymotion 设置为使用 Android Studio 也在使用的 ADB/Android SDK,而不是使用默认的 SDK。 That way you will avoid conflicts on future updates.这样您就可以避免在未来的更新中发生冲突。

在此处输入图片说明

You MUST install the plug-in for Genymotion first, click the "File" tab locate the "Plug-in" option, down the bottom, search for Genymotion, then install.您必须先安装 Genymotion 插件,单击“文件”选项卡,找到“插件”选项,在底部,搜索 Genymotion,然后安装。 After the installation, you need to restart Android Studio, after that, you will see the Genymotion icon near the "Sdk Manager" icon, click on it, then just specify the location of your Genymotion installation.安装完成后,您需要重启Android Studio,之后您会在“Sdk Manager”图标附近看到Genymotion图标,点击它,然后指定您的Genymotion安装位置即可。 Also, make sure you have "Oracle Virtual Box" installed in order to use Genymotion, it is a requirement.另外,请确保您安装了“Oracle Virtual Box”才能使用 Genymotion,这是一项要求。

Edit-编辑-在此处输入图片说明

Then your genymotion virtual machines come up, click the one you want (I think it has to be off for start to be clickable/not greyed) then click start,然后你的 genymotion 虚拟机出现,点击你想要的(我认为它必须关闭才能开始点击/不灰色)然后点击开始,

在此处输入图片说明

then click that green Play icon near the centre of the button bar below the menu bar, then the genymotion virtual machine should appear listed under 'running devices'.然后单击菜单栏下方按钮栏中心附近的绿色播放图标,genymotion 虚拟机应出现在“正在运行的设备”下。 highlight it and click ok, and it should launch and show your program.突出显示它并单击确定,它应该启动并显示您的程序。

在此处输入图片说明

Open Genymotion Shell,use command line devices list will show the打开 Genymotion Shell,使用命令行devices list将显示在此处输入图片说明then in cmd use command line adb connect IP address .if not show devices in studio.maybe restart studio.然后在 cmd 中使用命令行adb connect IP address如果没有在工作室中显示设备。也许重新启动工作室。

One words(you need find your devices ip): adb connect 192.168.***.***:5555一句话(你需要找到你的设备ip): adb connect 192.168.***.***:5555


2019-03-19 09:10:00 2019-03-19 09:10:00

My enviroment:我的环境:

  • Ubuntu 18.04 Ubuntu 18.04
  • Genymotion Version 3.0.1 Genymotion 3.0.1 版
  • Android Debug Bridge version 1.0.40 Android 调试桥版本 1.0.40
  • AndroidStudio version 3.3.2 AndroidStudio 版本 3.3.2

My problem:我的问题:

  1. adb devices : list is empty adb 设备: list is empty
  2. no usb devices or running emulators detected未检测到 USB 设备或正在运行的模拟器

My solution :我的解决方案:

  1. cd /opt/genymobile/genymotion
  2. ./genymotion-shell
  3. devices list (if no running devices start one) devices list (如果没有正在运行的设备启动一个)
  4. in other terminal run commond : adb connect yourDeviceIP:5555在其他终端运行adb connect yourDeviceIP:5555

Reference:参考:

  1. https://stackoverflow.com/a/27262302/7707781 https://stackoverflow.com/a/27262302/7707781
  2. https://stackoverflow.com/a/24926960/7707781 https://stackoverflow.com/a/24926960/7707781

I had the same problem, I close genymotion, then clicked on Run button , so the "Select Deploymnt Target" dialog opened.我遇到了同样的问题,我关闭了 genymotion,然后点击了运行按钮,所以“选择部署目标”对话框打开了。 after that I open genymotion as administrator, start virtual device and after a minute it appear in "Select Deploymnt Target" dialog.之后,我以管理员身份打开 genymotion,启动虚拟设备,一分钟后它出现在“选择部署目标”对话框中。

I think the key point is that genymotion has to be run after android studio, and maybe with "Select Deploymnt Target" dialog has to be opened!我认为关键是genymotion必须在android studio之后运行,并且可能必须打开“Select Deploymnt Target”对话框!

It works for me anyway无论如何它对我有用

After few research I found a solution, open task bar and just End Process the adb.exe, hit run (android studio) and adb will be recreated and your genymotion emulator will be on the list.经过一些研究,我找到了一个解决方案,打开任务栏,然后结束处理 adb.exe,点击运行(android studio)和 adb 将被重新创建,你的 genymotion 模拟器将在列表中。 Thumbs up竖起大拇指

When I updated Android Studio to 3.4, same problem is occured in my system.当我将 Android Studio 更新到 3.4 时,我的系统中出现了同样的问题。

  1. Open Genymotion program,打开 Genymotion 程序,
  2. Click "Genymotion" text on the upper left corner,点击左上角的“Genymotion”文字,
  3. "Settings" --> "ADB" --> check "Use Genymotion Android Tools (default)" “设置”-->“ADB”--> 勾选“使用 Genymotion Android 工具(默认)”
  4. Restart Genymotion program.重新启动 Genymotion 程序。

在此处输入图片说明 在此处输入图片说明

  • Go to Genymotion → Setting → ADB → Use Custom Android SDK tools ( C:\\Users\\{username}\\AppData\\Local\\Android\\Sdk ).转到 Genymotion → 设置 → ADB → 使用自定义 Android SDK 工具( C:\\Users\\{username}\\AppData\\Local\\Android\\Sdk )。
  • Go to Android Studio → Search for "Genymotion Device Manager" → Specific the part for Genymotion ( C:\\Program Files\\Genymobile\\Genymotion ).转到 Android Studio → 搜索“Genymotion 设备管理器”→ 指定 Genymotion 的部分( C:\\Program Files\\Genymobile\\Genymotion )。
  • Go to Android Studio → View → Appearent → Toolbar.转到 Android Studio → View → Appearent → Toolbar。

首先安装genymotion插件并重启和android studio。重启后你会在sdk管理器图标附近看到genymotion设备管理器图标选择它并添加你有genymotion文件夹的路径。如果你没有看到图标然后搜索genymotion设备管理器你会得到它

I have faced this problem once.我曾经遇到过这个问题。 I must connect it to adb server manually and it worked fine!我必须手动将它连接到 adb 服务器并且它工作正常! just follow these steps:只需按照以下步骤操作:

1- open your emulator 1-打开你的模拟器

2- after running, open oracle vm virualBox manager app 2-运行后,打开oracle vm virualBox manager app

3- double click on your running emulator. 3-双击您正在运行的模拟器。 you will see Ip management value.你会看到IP管理值。 that's the emulator local ip address那是模拟器本地IP地址

4- go to your sdk manager path, then platform-tools directory 4- 转到您的 sdk 管理器路径,然后是平台工具目录

5- open cmd on this directory (or use cd command) 5- 在此目录上打开 cmd(或使用 cd 命令)

6- run adb connet ipAddress:5555 6- 运行 adb connet ipAddress:5555

after that you will see connected to ip address text on the screen.之后,您将在屏幕上看到连接到 ip 地址的文本。 go back to android studio and you see adb has appeared!回到android studio,你会看到adb出现了!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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