sdk icon indicating copy to clipboard operation
sdk copied to clipboard

Workload installation failed: microsoft.android.sdk.windows::34.0.64 is not found in NuGet feeds https://api.nuget.org/v3/index.json"

Open aherrick opened this issue 1 year ago • 8 comments

Description

Can't build any MAUI apps anymore. On latest VS2022 Preview.

C:\code\repos\app>dotnet workload restore --source https://api.nuget.org/v3/index.json
Installing workloads: android ios maccatalyst

Installing pack Microsoft.Android.Sdk.Windows version 34.0.64...
Workload installation failed. Rolling back installed packs...
Rolling back pack Microsoft.Android.Sdk.Windows installation...
Workload installation failed: microsoft.android.sdk.windows::34.0.64 is not found in NuGet feeds https://api.nuget.org/v3/index.json".
.NET SDK:
 Version:           8.0.100
 Commit:            57efcf1350
 Workload version:  8.0.100-manifests.667597c3

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.22621
 OS Platform: Windows
 RID:         win-x64
 Base Path:   C:\Program Files\dotnet\sdk\8.0.100\

.NET workloads installed:
 Workload version: 8.0.100-manifests.667597c3
 [aspire]
   Installation Source: VS 17.9.34407.89
   Manifest Version:    8.0.0-preview.3.23607.3/8.0.100
   Manifest Path:       C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.aspire\8.0.0-preview.3.23607.3\WorkloadManifest.json
   Install Type:        FileBased

 [maui-windows]
   Installation Source: VS 17.9.34407.89
   Manifest Version:    8.0.3/8.0.100
   Manifest Path:       C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.maui\8.0.3\WorkloadManifest.json
   Install Type:        FileBased

 [android]
   Installation Source: VS 17.9.34407.89
   Manifest Version:    34.0.64/8.0.100
   Manifest Path:       C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.android\34.0.64\WorkloadManifest.json
   Install Type:        FileBased

 [maccatalyst]
   Installation Source: VS 17.9.34407.89
   Manifest Version:    17.0.8497/8.0.100
   Manifest Path:       C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.maccatalyst\17.0.8497\WorkloadManifest.json
   Install Type:        FileBased

 [ios]
   Installation Source: VS 17.9.34407.89
   Manifest Version:    17.0.8497/8.0.100
   Manifest Path:       C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.ios\17.0.8497\WorkloadManifest.json
   Install Type:        FileBased


Host:
  Version:      8.0.0
  Architecture: x64
  Commit:       5535e31a71

.NET SDKs installed:
  8.0.100 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.25 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 7.0.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 8.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 6.0.25 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 7.0.14 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 8.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 6.0.14 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 6.0.25 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 7.0.14 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 8.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

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

Environment variables:
  Not set

global.json file:
  Not found

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

8.0.3

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

aherrick avatar Dec 17 '23 16:12 aherrick

I met the same issue, does anyone know how to solve it? I use .net 8 SDK to build a MAUI project.

Chun817 avatar Dec 26 '23 01:12 Chun817

I'm seeing a similar issue when attempting to install the maui workload on Mac (with SDK 8.0.100):

Workload installation failed: microsoft.android.sdk.darwin::34.0.59 is not found in NuGet feeds https://api.nuget.org/v3/index.json".

philliphoff avatar Jan 03 '24 06:01 philliphoff

is there anyone that can help with this? i can't build MAUI without it @philliphoff did you find a work around? thanks!

aherrick avatar Jan 23 '24 19:01 aherrick

@aherrick For this issue, no, though it's been pushed down the stack in favor of other tasks so I haven't circled back in a while.

philliphoff avatar Jan 23 '24 19:01 philliphoff

How is this still untriaged?

See #38681 and #38683 . 2 issues raised by myself related to this. Both the `dotnet workload1 tool and the way MS pushes their packages should change. This is a known issue and has been for quite some time and results in people loosing work hours waiting for dependant packages to be pushed.

KieranFoot avatar Feb 18 '24 22:02 KieranFoot

FYI this issue "fixed" itself with the latest Preview package updates for me. still frustrating

aherrick avatar Feb 23 '24 14:02 aherrick

This issue is not fixed, it's a symptom of bad practice from Microsoft when building/pushing packages. It's a well known issue, yet still not resolved.

KieranFoot avatar Mar 02 '24 23:03 KieranFoot

@philliphoff I feel this issue should have been resolved a very long time ago. As said before, David Fowler even stated this is a known issue regarding the order that packages are built and the pushed to NuGet resulting in packages not being available when needed after manifests containing them have already been updated. Issues regarding this remain untriaged and in my opinion unresolved as the root cause still remains.

Is there any intention to fix the root cause(s) leading to this reoccurring issue?

KieranFoot avatar Mar 02 '24 23:03 KieranFoot