简体   繁体   中英

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 ? Thanks for all .

Edit :I solved the problem by updating genymotion too

Genymotion by default uses it's own ADB binary. If it has a different version than the one Android Studio is using, they can conflict and you get lots of issues. One of them can be Genymotion not being detected, and problems deploying apps.

I would recommend setting Genymotion to use the ADB/Android SDK that Android Studio is also using, instead of using the default one. 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. 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. Also, make sure you have "Oracle Virtual Box" installed in order to use Genymotion, it is a requirement.

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,

在此处输入图片说明

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'. highlight it and click ok, and it should launch and show your program.

在此处输入图片说明

Open Genymotion Shell,use command line devices list will show the在此处输入图片说明then in cmd use command line adb connect IP address .if not show devices in studio.maybe restart studio.

One words(you need find your devices ip): adb connect 192.168.***.***:5555


2019-03-19 09:10:00

My enviroment:

  • Ubuntu 18.04
  • Genymotion Version 3.0.1
  • Android Debug Bridge version 1.0.40
  • AndroidStudio version 3.3.2

My problem:

  1. adb devices : list is empty
  2. no usb devices or running emulators detected

My solution :

  1. cd /opt/genymobile/genymotion
  2. ./genymotion-shell
  3. devices list (if no running devices start one)
  4. in other terminal run commond : adb connect yourDeviceIP:5555

Reference:

  1. https://stackoverflow.com/a/27262302/7707781
  2. 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. after that I open genymotion as administrator, start virtual device and after a minute it appear in "Select Deploymnt Target" dialog.

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!

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. Thumbs up

When I updated Android Studio to 3.4, same problem is occured in my system.

  1. Open Genymotion program,
  2. Click "Genymotion" text on the upper left corner,
  3. "Settings" --> "ADB" --> check "Use Genymotion Android Tools (default)"
  4. Restart Genymotion program.

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

  • Go to Genymotion → Setting → ADB → Use Custom Android SDK tools ( 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 ).
  • Go to 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! just follow these steps:

1- open your emulator

2- after running, open oracle vm virualBox manager app

3- double click on your running emulator. you will see Ip management value. that's the emulator local ip address

4- go to your sdk manager path, then platform-tools directory

5- open cmd on this directory (or use cd command)

6- run adb connet ipAddress:5555

after that you will see connected to ip address text on the screen. go back to android studio and you see adb has appeared!

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