Search code examples
androidxamarinxamarin.formsvisual-studio-2019android-sdk-2.3

Xamarin - The project is missing Android SDKs required for building


I downloaded a fresh copy of Visual Studio 2019 Community Edition. For installation, I selected only the Xamarin workload for mobile development. I created a new Xamarin.Forms project and it immediately gives the following error:

enter image description here

When I double click the message, I am prompted to Accept the Android SDK License Agreement. I click accept, and nothing changes, I just keep repeating those steps.

Navigating to the Android SDK Manager shows an empty list with an error:

enter image description here

All the solutions I have found online have not worked for me:

  • Enable "Auto-Install Android SDKs" in Xamarin options
  • Run Visual Studio as Administrator
  • Create custom AndroidSdkManager.exe.config file
  • Uninstall and re-install Visual Studio
  • Verified JAVA_HOME variable is set correctly

The only thing that resolved the error (before I uninstalled) was changing the Android SDK Manager repository from Microsoft to Google:

enter image description here

This doesn't seem like a proper solution given the warning message shown so I am wondering what else I can do.


Solution

  • I was running on Windows 7. The issue was resolved after upgrading to Windows 10 and the Android SDKs installed correctly.