Bug 19091 - Xamarin Studio does not see running emulator, fixed by restarting XS
Summary: Xamarin Studio does not see running emulator, fixed by restarting XS
Status: RESOLVED DUPLICATE of bug 16865
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Android Add-in ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: master
Assignee: Mikayla Hutchinson [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2014-04-16 14:20 UTC by Dale King
Modified: 2014-04-20 18:42 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED DUPLICATE of bug 16865

Description Dale King 2014-04-16 14:20:49 UTC
Description of Problem: Xamarin's ADB support seems to be very flaky and nowhere near as robust as something like Android Studio. The simple act of opening a new project in Xamarin Studio will cause it to not find running emulator anymore.


Steps to reproduce the problem:
1. Open a solution with Android application project in Xamarin Studio
2. Set Android project as startup project
3. Start emulator (in my case I am using Genymotion emulator)
4. Debug the project
5. Select device shows up with the running emulator listed
6. Run project on the emulator
7. Close the solution in Xamarin Studio (do not quit Xamarin Studio)
8. Re-open the solution in Xamarin Studio
9. Hit debug
10. Select device dialog pops up, but the emulator that is still running is not listed

At this point if you quit Xamarin Studio completely and restart it then it will see the emulator again.

This also occurs if I just double-click another solution file to open it while Xamarin Studio is already open.

There are other times where it fails to find an emulator that is still running, but this sequence seems to be 100% repeatable.
Comment 1 Dale King 2014-04-16 14:36:54 UTC
Just discovered that the refresh button can cause the device to reappear, BUT only if I hit it more than once in a row (e.g. quickly double click it). Single clicks will not do it. I have to hit more than once in a row.

So I at least now have an alternative to quitting Xamarin Studio, I just have to keep banging on refresh until it appears.

FYI, before you ask the device does show up when I run adb devices command while it does not appear in select device dialog.
Comment 2 Mikayla Hutchinson [MSFT] 2014-04-20 18:42:49 UTC

*** This bug has been marked as a duplicate of bug 16865 ***