Android Studio Unable to Find Genymotion Device

2019-09-01 04:19发布

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:

enter image description here

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

enter image description here

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

enter image description here

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

1条回答
ら.Afraid
2楼-- · 2019-09-01 04:48

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

The forwarding port number

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.

查看更多
登录 后发表回答