75460

Android Studio Unable to Find Genymotion Device

Question:

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:

<a href="https://i.stack.imgur.com/N9vnn.png" rel="nofollow"><img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/N9vnn.png" data-original="https://i.stack.imgur.com/N9vnn.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" /></a>

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

<a href="https://i.stack.imgur.com/w5UGm.png" rel="nofollow"><img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/w5UGm.png" data-original="https://i.stack.imgur.com/w5UGm.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" /></a>

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

<a href="https://i.stack.imgur.com/h2LJe.png" rel="nofollow"><img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/h2LJe.png" data-original="https://i.stack.imgur.com/h2LJe.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" /></a>

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

Answer1:

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

adb connect XXX.XXX.XXX:PORT

<a href="https://groups.google.com/forum/#!topic/genymotion-users/ov5ANqGf3DI" rel="nofollow">Discussion about it</a>

Forwarding can be done for gennymotion... Here's a <a href="http://paulsdevworld.blogspot.in/2013/06/make-android-studio-work-with-androvm.html" rel="nofollow">link</a>

<blockquote>

Explantion about this forwarding thing...

</blockquote>

<a href="https://i.stack.imgur.com/Hi9Vr.png" rel="nofollow"><img alt="The forwarding port number" class="b-lazy" data-src="https://i.stack.imgur.com/Hi9Vr.png" data-original="https://i.stack.imgur.com/Hi9Vr.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" /></a>

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.

Recommend

  • error while inflating class android.support.v7.widget.CardView
  • java.util.zip.ZipException: duplicate entry: AbstractHttpContent.class
  • problems with 'com.android.support:appcompat-v7.27.1.1' in the gradle file
  • Exception raised during Rendering: android.support.design.widget.CoordinatorLayout cannot be cast to
  • What does the exclamation mark before class path do in ProGuard?
  • AdMob - Ad not displayed - Error 2
  • How can I speed up this row-by-row operation in data.table
  • Can we Create Smart Device Project in VIsual Studio 2015 Professional
  • Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.goog
  • Java Generic Type Inference Strange Behavior?
  • Xamarin Forms PopAsync crash
  • mfc - MessageBox with rich text
  • Found com.google.android.gms:play-services-places:9.2.1, but version 9.0.2 is needed for the google-
  • Apply a gradle plugin with a common configuration to all projects
  • Android error - Failed to find style 'toolbarStyle' in current theme
  • SCons libraries and sub-libraries
  • How do I obtain a list of files that changed from svn over a date range?
  • integrate POCO library in android ndk
  • AlertDialog style when using setView()
  • Changing Jupyter Notebook start up folder by modifying “start in” not working any more
  • “mvn clean generate-source” could not resolve dependencies
  • In Java, how can I construct a File from a resource?
  • Android Studio Can't Find tools.jar
  • List images(01.png) and descriptions(01.txt) from directory
  • Copy to all folders batch file?
  • Adjust width of select element according to selected option's width
  • Hardware Accelerated Image Scaling in windows using C++
  • How to test if a URL from an Eclipse bundle is a directory?
  • Disable Enter in editText android
  • Cannot resolve symbol 'MyApi'
  • If I include Java 8 in my Android app does that affect which devices it will work on?
  • recyclerView does not call the onBindViewHolder when scroll in the view
  • Can I make an Android app that runs a web view in Chrome 39?
  • Why is the timeout on a windows udp receive socket always 500ms longer than set by SO_RCVTIMEO?
  • Release, debug version and Authorization Google?
  • Timeout for blocking function call, i.e., how to stop waiting for user input after X seconds?
  • How to include full .NET prerequisite for Wix Burn installer
  • Buffer size for converting unsigned long to string
  • Hits per day in Google Big Query
  • How to get Windows thread pool to call class member function?