I have a Genymotion device in another local PC (due to slow performance) and Android Studio in another development PC. I can connect any Genymotion device which is below API21 from my development PC (using adb connect 192.168.x.x) but any device with API21 shows offline in my development PC, though adb can connect well. In the "device choose" panel and device monitor, it shows offline
. But in the remote PC, the same device is online and workable. Why does it show online
for devices with API below 21, and offline
for API 21+.
I get the following after connecting to my remote Genymotion device. But the same device works on that remote host well. Any devices below API21 shows online
.
I think I got it right myself by trial n error.After connecting the remote genymotion device(API21),I found that there are several adb process in task manager for A SINGLE genymotion device.Then I manually stopped all "adb" process from windows task manager on remote machine (or adb kill-server command for all adb process,in my case there were more). Then using adb command I restarted and connected again the same remote device frm development machine. Somehow it is connected and shows ONLINE now and works as expected. I dont know why it happens to devices < API21. The other device >=API21 connects directly and shows online.The problem seems to be multiple adb process on remote machine for a single genymotion device of only API21.
I tried both solutions (included the accepted one) and it didn't work. Finally found a solution to this one. After much fiddling, I found out that genymotion only allows adb connection
from one machine at the time. Doing a adb kill-server
on the host imediatelly followed by an adb connect ip
on the remote machine did the trick.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With