Building .NET for Android requires:
- An existing installation of the .NET for Android SDK and the Android SDK
- The .NET Framework 3.5 – 4.7 development tools
- Git for Windows
- The Java Development Kit (JDK)
The recommended steps to install these dependencies are:
-
Run the Visual Studio Installer.
-
Under the Workloads tab, ensure that the Mobile development with .NET workload is installed. Under the Optional items for the workload, ensure Android SDK setup is selected.
-
Also ensure the .NET desktop development workload is installed. Under the Optional items for the workload, ensure the following items are installed:
- .NET Framework 4 – 4.6 SDKs
- .NET Framework 4.6.2 SDK
- .NET Framework 4.7 SDK
- .NET Core 2.0 or 3.0 SDK
The following items are also recommended:
- .NET Framework 4.7.1 development tools
- .NET Framework 4.7.2 development tools
-
Under the Individual components tab, ensure that Code tools > Git for Windows is installed.
-
Ensure the .NET Framework 3.5 SP1 Runtime is installed by downloading and running the installer from https://www.microsoft.com/net/download/visual-studio-sdks.