Bug 15265 - ResolveSdks/CheckProjectItems task failed unexpectedly: WaitAll for multiple handles on a STA thread is not supported
Summary: ResolveSdks/CheckProjectItems task failed unexpectedly: WaitAll for multiple ...
Status: RESOLVED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: MSBuild ()
Version: 4.8.x
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2013-10-08 08:23 UTC by Andrew
Modified: 2013-10-08 13:00 UTC (History)
1 user (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 FIXED

Description Andrew 2013-10-08 08:23:14 UTC
I upgraded VS 2010 Xamarin.Android to 4.8.3 beta (4.8.03014 (355b80cb)) and no longer can build Android projects.

Two errors:

C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(314,2): error MSB4018: The "ResolveSdks" task failed unexpectedly.
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(314,2): error MSB4018: System.NotSupportedException: WaitAll for multiple handles on a STA thread is not supported.
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(314,2): error MSB4018:    at System.Threading.WaitHandle.WaitMultiple(WaitHandle[] waitHandles, Int32 millisecondsTimeout, Boolean exitContext, Boolean WaitAll)
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(314,2): error MSB4018:    at System.Threading.WaitHandle.WaitAll(WaitHandle[] waitHandles, Int32 millisecondsTimeout, Boolean exitContext)
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(314,2): error MSB4018:    at Xamarin.Android.Tasks.MandroidDaemon.SendCommand(Task task, String[] commands, Action`1 response)
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(314,2): error MSB4018:    at Xamarin.Android.Tasks.MandroidDaemon.GetEdition(Task task)
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(314,2): error MSB4018:    at MSBuildExtensions.GetLicenseEdition(Task task)
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(314,2): error MSB4018:    at Xamarin.Android.Tasks.ResolveSdks.Execute()
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(314,2): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(314,2): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()
----------------
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(490,3): error MSB4018: The "CheckProjectItems" task failed unexpectedly.
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(490,3): error MSB4018: System.NotSupportedException: WaitAll for multiple handles on a STA thread is not supported.
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(490,3): error MSB4018:    at System.Threading.WaitHandle.WaitMultiple(WaitHandle[] waitHandles, Int32 millisecondsTimeout, Boolean exitContext, Boolean WaitAll)
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(490,3): error MSB4018:    at System.Threading.WaitHandle.WaitAll(WaitHandle[] waitHandles, Int32 millisecondsTimeout, Boolean exitContext)
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(490,3): error MSB4018:    at Xamarin.Android.Tasks.MandroidDaemon.SendCommand(Task task, String[] commands, Action`1 response)
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(490,3): error MSB4018:    at Xamarin.Android.Tasks.MandroidDaemon.GetEdition(Task task)
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(490,3): error MSB4018:    at Xamarin.Android.Tasks.CheckProjectItems.Execute()
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(490,3): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(490,3): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()
Comment 1 Jonathan Pryor 2013-10-08 13:00:13 UTC
Fixed in monodroid/98285433 and monodroid-4.8.2-branch/a25a31d0.