Android Studio Unable to Find Genymotion Device

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 21:25:57

问题


Been trying to load a test Android app onto my Genymotion VM for awhile now. My issue is, I have been unable to get the Genymotion device to show up in the "connected devices", even though the device shows up in the Android Studio Genymotion plugin.

These are my depencies:

compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.2.0'
compile 'com.google.android.gms:play-services:6.+'
compile files('libs/temboo-android-sdk-core-2.12.0.jar')
compile files('libs/Google-2.12.0.jar')

The Genymotion plugin was able to find my two devices:

However, according to Android Studio, there are still no connected devices:

Even the logs appear to show that the app was loaded, however, when I opened Genymotion, I am unable to find my application:

I've tried using Run, Debug, and more, but was just unable to get my application onto my Genymotion VM.


回答1:


You would have to do the port forwarding on the gennymotion for it to be detected.

adb connect XXX.XXX.XXX:PORT

Discussion about it

Forwarding can be done for gennymotion... Here's a link

Explantion about this forwarding thing...

See this above image, it has the host port(Operating system) and the Guest port(Its the Genny motion).So we tell to the Virtual box to forward all connections of Genny's internal port to the OS port.



来源:https://stackoverflow.com/questions/32290210/android-studio-unable-to-find-genymotion-device

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!