First it is very important to install the correct dotnet SDK. At the time of writing, the lowest sdk version that works is 6.0.200.
dotnet workload install android
{% hint style="info" %}
You may need to run the command with sudo
You may also need to uninstall old versions. dotnet workload remove android
{% endhint %}
There are a few ways to install the Android SDK.
If you have Visual Studio or Visual for Mac you should follow the guide found here:
{% embed url="https://docs.microsoft.com/en-us/xamarin/android/get-started/installation/android-sdk" %}
If you use Rider then please follow the guide here:
{% embed url="https://www.jetbrains.com/help/rider/Xamarin.html" %}
Alternatively you can install the Android command line tools from here:
{% embed url="https://developer.android.com/studio#command-tools" %}
This has a command line based SDK manager that can be used to install the SDK.
There is also a tool in development called maui check that can do all of this for you automatically:
dotnet tool install -g Redth.Net.Maui.Check
maui-check
This should install all the required SDKs and tools.
This will allow you to build applications for Android and run them in the simulator on any platform.