android: Android SDK Manager + Full List repository is broken
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. ❌
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
- Open the Android SDK Manager
- Set the Repository selection to Full List (Unsupported)
- When page refreshes, an error message is shown.
Did you find any workaround?
Use the Approved List (Recommended) repository selection.
About this issue
- Original URL
- State: open
- Created 5 years ago
- Reactions: 1
- Comments: 15 (2 by maintainers)
Commits related to this issue
- Bump to xamarin/monodroid/main@4fa11431 (#6963) Context: https://github.com/xamarin/xamarin-android/issues/6965 Changes: http://github.com/xamarin/monodroid/compare/e451ea986b27cdfb965df07c1f2ea74... — committed to dotnet/android by jonpryor 5 years ago
- Bump to xamarin/monodroid/main@4fa11431 (#6963) Context: https://github.com/xamarin/xamarin-android/issues/6965 Changes: http://github.com/xamarin/monodroid/compare/e451ea986b27cdfb965df07c1f2ea74... — committed to dotnet/android by jonpryor 5 years ago
Any update on this?
@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.
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.<Load>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