dotnet / dotnet/sdk

Workload installation failed: Workload ID android isn't supported on this platform.

Open
#42,946 2 comments 0 reactions 0 assignees View on GitHub
Area-Workloads untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

**Background:**
I try to get the Uno framework installed on a Windows PC, but the install fails on installing dotnet multiple workloads, amongst which Android :

```
C:\....\>dotnet workload install android
Workload installation failed: Workload ID android isn't supported on this platform.
```

This seems to be because the Workload is not recognized; In fact, the installable Workloads list is very empty, and has a lot less entries than I have seen in examples:
```
C:\...>dotnet workload search

Workload ID Description
--------------------------------------------------------------------
macos .NET SDK Workload for building macOS applications.
maui-tizen .NET MAUI SDK for Tizen
maui-windows .NET MAUI SDK for Windows
```

Even though the manifests do seem to exist
```
C:...>dotnet workload update --ignore-failed-sources

Updated advertising manifest microsoft.net.workload.emscripten.net7.
Updated advertising manifest microsoft.net.sdk.aspire.
Updated advertising manifest microsoft.net.workload.emscripten.current.
Updated advertising manifest microsoft.net.sdk.maccatalyst.
Updated advertising manifest microsoft.net.workload.mono.toolchain.net6.
Updated advertising manifest microsoft.net.workload.mono.toolchain.net7.
Updated advertising manifest microsoft.net.workload.mono.toolchain.current.
Updated advertising manifest microsoft.net.workload.emscripten.net6.
Updated advertising manifest microsoft.net.sdk.android.
Updated advertising manifest microsoft.net.sdk.macos.
Updated advertising manifest microsoft.net.sdk.tvos.
Updated advertising manifest microsoft.net.sdk.ios.
Updated advertising manifest microsoft.net.sdk.maui.
```

I am running Windows 22H2 19045.4651, VS 17.11.1, and Dotnet 8.0.3 (apparently with maui-windows workload installed):

I tried
- Removing any except for "https://api.nuget.org/v3/index.json" from the Nuget URL.
- Updated Visual Studio, made sure that .Net Multi-platform App UI development and Mobile development with C++ is installed as well
- Removed other Visual Studio older installations
- Performed a full .Net SDK and VS uninstall and subsequent reinstall

### Additional info
```
C:\...>dotnet workload list

Installed Workload Id Manifest Version Installation Source
---------------------------------------------------------------------------------
macos 14.5.8020/8.0.100 SDK 8.0.400, VS 17.11.35219.272
maui-windows 8.0.72/8.0.100 SDK 8.0.400, VS 17.11.35219.272

Use `dotnet workload search` to find additional workloads to install.
```

```
C:\...>dotnet --info
.NET SDK:
Version: 8.0.401
Commit: 811edcc344
Workload version: 8.0.400-manifests.56cd0383
MSBuild version: 17.11.4+37eb419ad

Runtime Environment:
OS Name: Windows
OS Version: 10.0.19045
OS Platform: Windows
RID: win-x86
Base Path: C:\Program Files (x86)\dotnet\sdk\8.0.401\

.NET workloads installed:
Configured to use loose manifests when installing new manifests.
[macos]
Installation Source: SDK 8.0.400, VS 17.11.35219.272
Manifest Version: 14.5.8020/8.0.100
Manifest Path: C:\Program Files (x86)\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.macos\14.5.8020\WorkloadManifest.json
Install Type: FileBased

[maui-windows]
Installation Source: SDK 8.0.400, VS 17.11.35219.272
Manifest Version: 8.0.72/8.0.100
Manifest Path: C:\Program Files (x86)\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.maui\8.0.72\WorkloadManifest.json
Install Type: FileBased

Host:
Version: 8.0.8
Architecture: x86
Commit: 08338fcaa5

.NET SDKs installed:
8.0.401 [C:\Program Files (x86)\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.33 [C:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.8 [C:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.29 [C:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.33 [C:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.20 [C:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.8 [C:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 6.0.29 [C:\Program Files (x86)\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.33 [C:\Program Files (x86)\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.20 [C:\Program Files (x86)\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.8 [C:\Program Files (x86)\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
x64 [C:\Program Files\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x64\InstallLocation]

Environment variables:
Not set

global.json file:
C:\Users\...\source\repos\UnoApp6\global.json
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.