Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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 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.
# Steps to reproduce
Install Alpha Preview 3 of Cycle 8 Visual Studio, open or create a Xamarin.Android project and try to debug it using the Visual Studio Emulator for Android.
# Expected behavior
The available emulators are listed in the devices dropdown. Able to pick an emulator and start debugging. Visual Studio launches the emulator.
# Actual behavior
Only the Google emulators are visible, none of Visual Studio Emulator for Android are.
Manually launching the emulator will sometimes make it show up in the dropdown, however, when launching the debug session ends abruptly with the following message in the Debug window:
Cannot start debugging: Unhandled exception while trying to connect to 127.0.0.1:8871
Method not found: 'Void Mono.AndroidTools.AmStartCommand..ctor(System.String, System.String, System.Net.IPAddress, Int32, Int32, Boolean)'.
# Supplemental info (logs, images, videos)
# Test environment (full version information)
Microsoft Visual Studio Enterprise 2015 14.0.25424.00 Update 3
Xamarin 126.96.36.199 (1b3e004)
Xamarin Inspector Support 0.9.0.14 (4d868da)
Xamarin.Android 188.8.131.52 (4a7d97a)
We cannot reproduce this bug.
Could you attach the VS logs (Help/Xamarin/Zip Logs last 7 days)?
Could you specify the complete reproduction steps ?
Un)fortunately I'm no longer able to reproduce the issue as the emulator is working as expected after I had to repair Visual Studio and reinstall Xamarin.
After I encountered this issue I reverted to the beta channel. I must've gotten the version information after I did that. When I wanted to reproduce the issue to get the logs I updated to the Alpha channel and got into several issues where the Xamarin Visual Studio add-in packages failed to load.
This bug can be closed.
Created attachment 16987 [details]
It appears this error is back again. This time on a physical Nexus 5 device running Android 6.0.0. The devices list shows the device and emulators, so I changed the title of this bug to omit that part of the error.
Xamarin 184.108.40.2068 (f92a9da)
Xamarin Inspector Support 0.9.0.14 (4d868da)
Xamarin.Android 220.127.116.11 (fdaf900)
Xamarin.iOS 18.104.22.168 (22921dd)
It doesn't seem to be the original bug, but something new related to missing API-levels. We're investigating the issue.
Moving it to C8SR1 for now.
We'll get back to you soon.
Thanks for reporting!
thank you for filing this bug report, we have improvements related to the missing api levels in our current public Beta bits (XVS 22.214.171.1248).
Please, try that version and if you are still experiencing this issue, share with us the exact reproduction steps that trigger this behavior. And if you hit it again, please upload the log files generated from "Help>Xamarin>Zip Logs” to this bug.
I received the same error after updating to 126.96.36.1990. Clearing MEF cache resolved it for me.
I had the same issue again with version 188.8.131.525. I confirm that clearing the MEF cache did the trick. I used the following add-in to clear the cache: https://visualstudiogallery.msdn.microsoft.com/22b94661-70c7-4a93-9ca3-8b6dd45f47cd
As per comment #10, this issue was caused by the Visual Studio MEF Component Model Cache. Hence, resolving it as answered.
I've put together a build on top of current stable (184.108.40.2065) that should fix this issue: http://xvs.xamarin.com/patcheddrops/Xamarin.VisualStudio_220.127.116.118.msi
It will also be included in all future releases.
Please do reopen if you see this happen again in the future.
Thanks for reporting the issue!
I havechecked this issue as per comment12 with
Xamarin.VisualStudio_18.104.22.1688_a4b8cd89a452f9609be9dd751b6378de7f18d541 of cycle8 and Xamarin.VisualStudio_22.214.171.124_6eb7239a9a37bfe3a97e46f03a52558f2dac486c of master and not able to reproduce this issue, emulator is working as expected.
@Sander, It could be great If you please check this issue at your end with the build attached in comment12 and provide your observation.
I'm currently on build 126.96.36.1999 that should include the fix according to Daniel. I haven't witnessed this issue anymore.
Great Thanks @Sander to verify this issue.
@Daniel, Is the fix of this commit is merged in Master?
As per discussion with Daniel this issue is fixed in master.
Hence, closing this issue by marking it as Verified.