maui-check fails with Skipped: .NET SDK - Workloads (6.0.200)
PS C:\Users\pmohan> maui-check _ _ _____ _____ __ __ _ _ _ ___ | \ | | | | | | | / | / \ | | | | | | | | | | | | | | |/| | / _ \ | | | | | | _ | |\ | | | | | | | | | / ___ \ | || | | | () || _| |_____| || || || // _\ _/ ||
.NET MAUI Check v0.10.0.0 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── This tool will attempt to evaluate your .NET MAUI development environment. If problems are detected, this tool may offer the option to try and fix them for you, or suggest a way to fix them yourself.
Thanks for choosing .NET MAUI! ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── » Synchronizing configuration... ok » Scheduling appointments... ok
OpenJDK 11.0 Checkup...
- 11.0.12 (C:\Program Files\Microsoft\jdk-11.0.12.7-hotspot\bin..)
- 17.0.1 (C:\Program Files\Common Files\Oracle\Java)
- 17.0.1 (C:\Program Files\Java\jdk-17.0.1)
Visual Studio 17.1.0-pre.3.0 Checkup...
- 17.1.0-pre.4.0 - C:\Program Files\Microsoft Visual Studio\2022\Preview
- 16.11.6
- 17.0.5
Android SDK Checkup...
- emulator (31.2.6)
- build-tools;31.0.0 (31.0.0)
- platforms;android-31 (1)
- system-images;android-31;google_apis;x86_64 (8)
- platform-tools (31.0.3)
- cmdline-tools;5.0 (5.0)
Android Emulator Checkup...
- Emulator: pixel_5_-_api_30 found.
.NET SDK Checkup...
- 5.0.401 - C:\Program Files\dotnet\sdk\5.0.401
- 5.0.403 - C:\Program Files\dotnet\sdk\5.0.403
- 6.0.101 - C:\Program Files\dotnet\sdk\6.0.101
- 6.0.200-preview.22055.15 - C:\Program Files\dotnet\sdk\6.0.200-preview.22055.15
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Recommendation: Download .NET SDK (6.0.200) ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
! Attempt to fix? [y/n] (y): y » Attempting to fix: .NET SDK Downloading .NET SDK 6.0.200... Downloading... 100%... Downloaded .NET SDK 6.0.200. Installing .NET SDK 6.0.200... Fix failed - An error occurred trying to start process 'C:\Users\pmohan\AppData\Local\Temp\dotnet-sdk-6.0.200-win-x64.exe' with working directory 'C:\Users\pmohan'. The specified executable is not a valid application for this OS platform.
x Skipped: .NET SDK - Workload Deduplication
Edge WebView2 Checkup...
- Found Edge WebView2 version 97.0.1072.76
x Skipped: .NET SDK - Workloads (6.0.200) ─────────────────────────────────────────────────
same here
I´ve succeed to update to latest maui version and run a maui project for windows and android, here you have my steps:
dotnet nuget locals all --clear- Uninstall all workloads one by one
dotnet workload list<-- that returned me all the workloads (if you see any android-aot, remove it the first one and then proceed with the rest)dotnet workload uninstall <Name of the Workload> - Install the workloads again:
dotnet workload install android ios maccatalyst tvos macos maui wasm-tools --from-rollback-file https://aka.ms/dotnet/maui/preview.12.json --source https://aka.ms/dotnet6/nuget/index.json --source https://api.nuget.org/v3/index.json --no-cache - Open Visual Studio and create a brand new Maui project
- Run! worked
Note: I experienced issues with the old examples on windows, I´ve fix them by opening the Package.appxmanifest and remove all the "Assets" before any image
Attempted following @Rabosa616 steps but I get the following error on step 3:
`dotnet workload install android ios maccatalyst tvos macos maui wasm-tools --from-rollback-file https://aka.ms/dotnet/maui/preview.12.json --source https://aka.ms/dotnet6/nuget/index.json --source https://api.nuget.org/v3/index.json --no-cache
Invalid rollback definition. The manifest IDs in rollback definition https://aka.ms/dotnet/maui/preview.12.json do not match installed manifest IDs (microsoft.net.workload.mono.toolchain, 6.0.2-mauipre.1.22054.8, 7.0.200). Downloading microsoft.net.sdk.android.manifest-7.0.200.msi.x64 (31.0.200-preview.12.2) Workload installation failed. Rolling back installed packs... Workload installation failed: One or more errors occurred. (microsoft.net.sdk.android.manifest-7.0.200.msi.x64::31.0.200-preview.12.2 is not found in NuGet feeds https://aka.ms/dotnet6/nuget/index.json;https://api.nuget.org/v3/index.json".)`
It's being impossible to work with that, spent hours with this MAUI setup already, UNBELIEVABLE.