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 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.
Since 15.2 I began to get Unhandled .NET exceptions in Visual Studio while the application is not running. I have the following event in the Event log:
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: Mono.AndroidTools.ActivityNotFoundException
at Mono.AndroidTools.Internal.AdbOutputParsing.CheckStartResult(System.String, System.String)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
After this the Visual Studio crashes and is restarted. It happens on at least two solutions, so it's not solution related. I get 1-2 per day. I can't spot a reproduction scenario. It probably is after a failed build for Android.
I test on a Xiaomi device and there I have to click install on every other build. Sometimes I get distracted and I forget. I just forgot and on the next build I got the same error.
I will write when I have more info.
Just had it again under the same conditions.
Thank you for taking the time to submit the bug. We are unable to reproduce this issue. Please attach a reproduction to the bug by starting with a clean Xamarin.Android project and adding just the code necessary to demonstrate the issue.
Some typical issues with ActivityNotFoundException can be that you aren't defining your activity with an [Activity] attribute and it's not making the AndroidManifest.xml as an <activity> element. Please upload a reproduction project so we can further diagnose this issue.
Because we have not received a reply to our request for more information we are closing this issue. If you are still encountering this issue, please reopen the ticket with the requested information. Thanks!