问题
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