Skip to content

Android SDK Manager + Full List repository is broken #6965

Closed

Description

@jonpryor

Android application type

Classic Xamarin.Android (MonoAndroid12.0, etc.), Android for .NET (net6.0-android, etc.)

Description

Starting sometime during the week of 2022-Apr-18, attempts to use the Full List (Unsupported) repository would result in the error message:

Loading SDK component information failed. Please retry. ❌

image

The InstallAndroidDependencies target would also fail:

$ msbuild /t:InstallAndroidDependencies App.csproj
…
…/Xamarin.Installer.Common.targets(12,3): error : Could not parse xamarin android xml. For more info, check the logged manifest file
…/Xamarin.Installer.Common.targets(12,3): error : 'en' is an unexpected token. The expected token is '"' or '''. Line 3, position 12.
…/Xamarin.Installer.Common.targets(12,3): error : Failed to install required Android SDK components. Consider setting $(AndroidDependencyInstallationTimeout) to a value larger than '7' minutes.
…/Xamarin.Installer.Common.targets(12,3): error : Input string was not in a correct format.
…
    4 Error(s)

Steps to Reproduce

  1. Open the Android SDK Manager
  2. Set the Repository selection to Full List (Unsupported)
  3. When page refreshes, an error message is shown.

Did you find any workaround?

Use the Approved List (Recommended) repository selection.

Activity

  1. added
    needs-triage
    and removed
    needs-triage
    on Apr 26, 2022
  2. devilwacause commented on May 9, 2022

    @devilwacause

    Same issue. VS2017. Fails regardless if Microsoft or Google selected.

  3. timvandenhof commented on May 11, 2022

    @timvandenhof

    Same issue on Visual Studio for Mac: VS for Mac Enterprise 8.10.23 (build 7).

    The approved list is working fine, the full list is throwing the following error:
    Screenshot 2022-05-11 at 13 18 41

    I asked a colleague to reproduce this issue on Windows (VS2022 preview), and the error over there seems a little different. Something like 'instance' being 'null'.

    This prevents me from switching from Target SDK 30 to 31.

  4. devilwacause commented on May 16, 2022

    @devilwacause

    Any update on this?

  5. SarthakB26 commented on Jul 14, 2023

    @SarthakB26

    I am having the same issue with Fresh VS 2022 community install for both Approved or Unsupported list and I am not able any to change it to Google repository, maybe removed in latest VS version

    Got below issue when try to open both Android SDK manager or Device manager

    Xamarin - 17.6.0.251-d17-6+318364c
    No Android SDK instance matching the 'C:\Program Files (x86)\Android\android-sdk' path
    Failed to download Xamarin Repository manifest from https://aka.ms/xamarin/sdkmanifest/d17-6. System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
    at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)
    at System.Net.PooledStream.EndWrite(IAsyncResult asyncResult)
    at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)
    --- End of inner exception stack trace ---
    at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
    at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
    --- End of inner exception stack trace ---
    --- End of inner exception stack trace ---
    at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
    at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) at System.Threading.Tasks.Task1.get_Result()
    at Xamarin.Installer.AndroidSDK.Manager.Helper.DownloadToString(Uri url, String& output)
    at Xamarin.Installer.AndroidSDK.Repository.LoadManifest()
    ---> (Inner Exception #0) System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
    at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)
    at System.Net.PooledStream.EndWrite(IAsyncResult asyncResult)
    at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)
    --- End of inner exception stack trace ---
    at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
    at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
    --- End of inner exception stack trace ---<---

    Trying to load cached manifest...
    [AndroidSDK.Discover]: Failure parsing Android manifest: One or more errors occurred.
    [AndroidSDK.Discover]: This is usually due to bad XML in one or more of the SDK manifests.
    Discovery failed:
    System.ArgumentNullException: Value cannot be null.
    Parameter name: instance
    at Xamarin.Installer.AndroidSDK.AndroidSDKInstaller.RefreshState(AndroidSdkInstance instance, Boolean localOnly, Boolean performFullDetection)
    at Xamarin.Installer.AndroidSDK.Manager.AndroidSDKManager.<>c__DisplayClass46_0.b__0(Task`1 t)

    I tried opening https://aka.ms/xamarin/sdkmanifest/d17-6 on my browser and I able to download xml file without any issue.

    Please help If I need to configure proxy setting inside Visual Studio and how

  6. lansalot commented on Aug 9, 2023

    @lansalot

    Looks like proxy getting in the way for me too - yay for corporate interference! How to skip certificate check, or at least relax it a bit?

  7. SarthakB26 commented on Aug 9, 2023

    @SarthakB26

    @lansalot I was able to install and update required sdk's using android sdkmanager.
    here's the doc : https://developer.android.com/tools/sdkmanager.
    For emulator I had to download Android Studio. Visual studio detect running emulator even through Android studio and will allow to deploy app on it.

  8. lansalot commented on Aug 9, 2023

    @lansalot

    Thanks, am in progress doing that - but for some reason (couple of access-denieds on .temp\PackageOperation01\unzip\emulator\lib64\qt\lib\Qt5WebEngineCoreAndroidEmu.dll), tho most of it worked fine, the emulator installation failed. Will try it again tho.

  9. MagicAndre1981 commented on Aug 11, 2023

    @MagicAndre1981

    for me it works in VS 2022 17.6 LTSC:

    AndroidSDKManager

    At time of creating the issue I also had the issue.

  10. HannanHan commented on Dec 26, 2023

    @HannanHan

    any update on this? both vs2022 & vs2022 preview giving me the same error

  11. MagicAndre1981 commented on Dec 27, 2023

    @MagicAndre1981

    any update on this? both vs2022 & vs2022 preview giving me the same error

    for me it works in 17.8

  12. ssuppan commented on Mar 4, 2024

    @ssuppan

    I'm getting the same error too. It really doesn't inspire confidence in using Visual Studio 2022 (for windows) when Visual Studios For Mac is abandoned. I hate to say it but we are considering other tools.

  13. MagicAndre1981 commented on Mar 4, 2024

    @MagicAndre1981

    Try to install Android Studio and use their SDK manager to install items you need and create emulators there.

  14. DeerSteak commented on Apr 19, 2024

    @DeerSteak

    This is also broken when trying to install android dependencies using the instructions for the .NET MAUI extension for VS Code on macOS 14.4.1, whether using a separate Terminal window or the one built into Code.

  15. added
    possibly-stale
    on Aug 7, 2026
  16. MagicAndre1981 commented on Aug 14, 2026

    @MagicAndre1981

    works for me now, so it can be closed:

    Image
  17. added
    need-attention
    and removed
    possibly-stale
    on Aug 14, 2026
  18. locked and limited conversation to collaborators on Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    need-attention

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions