Skip to content

Latest commit

 

History

History
48 lines (28 loc) · 1.42 KB

setting-up-your-developer-environment-for-android.md

File metadata and controls

48 lines (28 loc) · 1.42 KB

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

{% 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 %}

Install the Android SDK

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.