You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Android SDK Manager + Full List repository is broken #6965
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. ❌
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)
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:
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.
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)
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.
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.
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.
Activity
jonpryor commentedon Apr 26, 2022
See also:
jonpryor commentedon Apr 26, 2022
See also:
Bump to xamarin/monodroid/main@4fa11431 (#6963)
Bump to xamarin/monodroid@4fa11431 (#6963)
devilwacause commentedon May 9, 2022
Same issue. VS2017. Fails regardless if Microsoft or Google selected.
timvandenhof commentedon May 11, 2022
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:

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.
devilwacause commentedon May 16, 2022
Any update on this?
SarthakB26 commentedon Jul 14, 2023
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.Task
1.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
lansalot commentedon Aug 9, 2023
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?
SarthakB26 commentedon Aug 9, 2023
@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.
lansalot commentedon Aug 9, 2023
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.
MagicAndre1981 commentedon Aug 11, 2023
for me it works in VS 2022 17.6 LTSC:
At time of creating the issue I also had the issue.
HannanHan commentedon Dec 26, 2023
any update on this? both vs2022 & vs2022 preview giving me the same error
MagicAndre1981 commentedon Dec 27, 2023
for me it works in 17.8
ssuppan commentedon Mar 4, 2024
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.
MagicAndre1981 commentedon Mar 4, 2024
Try to install Android Studio and use their SDK manager to install items you need and create emulators there.
DeerSteak commentedon Apr 19, 2024
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.
MagicAndre1981 commentedon Aug 14, 2026
works for me now, so it can be closed: