Setting up your developer environment for Android
Install the dotnet SDK
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.
Install the Workload
dotnet workload install android
You may need to run the command with sudo
You may also need to uninstall old versions. dotnet workload remove android
Install the Android SDK
There are a few ways to install the Android SDK.
If you have Visual Studio or Visual Studio for Mac you should follow the guide found here:
Setting up Android SDK for Xamarin
If you use Rider then please follow the guide here:
Alternatively you can install the Android command line tools from here:
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.