Skip to main content

How to resolve the Android/iOS SDK missing issues after upgrading Visual Studio for Mac Community 8.9.1.

I upgraded my Mac development environment with the latest visual studio for Mac release (Visual Studio for Mac Community 8.9.1), and it suddenly ceased the development environment!

 

I Googled and found out the issue is common for Xamarin projects with the latest “Visual Studio for Mac Community 8.9.1” version upgrade.

 

Xamarin.Android Project

 

When trying to compile a Xamarin.Android project it said that;

 

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Tooling.targets (5,5):
Error XARSD7023: System.IO.DirectoryNotFoundException: Could not find a part of the path
'/Users/roshan/Library/Android/sdk'.

at System.IO.Enumeration.FileSystemEnumerator`1[TResult].CreateDirectoryHandle (System.String path,
System.Boolean ignoreNotFound) [0x00032] in <36514b14425c4337b446653c547aa9c3>:0 

at System.IO.Enumeration.FileSystemEnumerator`1[TResult]..ctor (System.String directory,
System.IO.EnumerationOptions options) [0x00048] in <36514b14425c4337b446653c547aa9c3>:0 

at System.IO.Enumeration.FileSystemEnumerable`1+DelegateEnumerator[TResult]..ctor
(System.IO.Enumeration.FileSystemEnumerable`1[TResult] enumerable) [0x00000] 
in <36514b14425c4337b446653c547aa9c3>:0”