VStudio crashes Xamarin projects after upgrade to 16.11.6

Fernando Manuel Gonçalves 1 Reputation point
2021-11-13T09:06:22.503+00:00

I upgraded VS COmmunity 16.11.3 to 16.11.6

After that I can't create or open Xamarin projects.

I get this error message in ide.log

Xamarin Information: 0 : Xamarin - 16.11.000.190-d16-11+2391ed9: 11/13/2021 08:54:29Z
DateTime=2021-11-13T08:54:29.5505247Z: 11/13/2021 08:54:29Z
Xamarin Information: 0 : !Xamarin - 16.11.000.190-d16-11+2391ed9: 11/13/2021 08:54:29Z
DateTime=2021-11-13T08:54:29.5515217Z: 11/13/2021 08:54:29Z
Xamarin.VisualStudio.Android.XamarinAndroidPackage Warning: 0 : Initializing Xamarin.VisualStudio.Android.XamarinAndroidPackage: 11/13/2021 08:54:29Z
DateTime=2021-11-13T08:54:29.6378288Z: 11/13/2021 08:54:29Z
Xamarin.VisualStudio.UnhandledExceptionsManager Error: 0 : An unhandled error occurred. Details: Unknown property key for value list directories in which to look for classes!

System.InvalidOperationException: Unknown property key for value list directories in which to look for classes!
at Xamarin.Android.Tools.JdkInfo.<>c__DisplayClass46_0.<GetJavaProperties>b__0(Object o, DataReceivedEventArgs e) in C:\A\1\14\s\External\androidtools\external\xamarin-android-tools\src\Xamarin.Android.Tools.AndroidSdk\JdkInfo.cs:line 263
at System.Diagnostics.Process.ErrorReadNotifyUser(String data)
at System.Diagnostics.AsyncStreamReader.FlushMessageQueue()
at System.Diagnostics.AsyncStreamReader.GetLinesFromStringBuilder()
at System.Diagnostics.AsyncStreamReader.ReadBuffer(IAsyncResult ar)
at System.IO.Stream.ReadWriteTask.InvokeAsyncCallback(Object completedTask)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.IO.Stream.ReadWriteTask.System.Threading.Tasks.ITaskCompletionAction.Invoke(Task completingTask)
at System.Threading.Tasks.Task.FinishContinuations()
at System.Threading.Tasks.Task.FinishStageThree()
at System.Threading.Tasks.Task.FinishStageTwo()
at System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(): 11/13/2021 08:54:30Z
DateTime=2021-11-13T08:54:30.0764146Z: 11/13/2021 08:54:30Z

Since we cannot rollback VSCOmmunity I tried VS Prof 16.11.4 and got the same error. With versions 16.11.5 and 16.11.6 I got the same error

I can open other type of projects

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,378 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.