Network Issues in Android Emulator

DinoN 1 Reputation point
2021-11-08T20:52:38.19+00:00

I am trying to run app in Android Emulator on mac.
Visual Studio for Mac 8.10.13 (build 11)

When trying to execute XDocument.Load(xmlFileURL);

I am getting the error
System.Net.WebException: Error: ConnectFailure (TLS Support not available.) ---> System.NotSupportedException: TLS Support not available. ---> System.NotSupportedException: Invalid TLS Provider: `Native TLS 1.2+'.
at Mono.Net.Security.MonoTlsProviderFactory.CreateDefaultProviderImpl () [0x0005d] in <e3b6ad7501434659b50b5395301b3720>:0
at Mono.Net.Security.MonoTlsProviderFactory.InitializeInternal () [0x00023] in <e3b6ad7501434659b50b5395301b3720>:0

Xamarin.Android
Version: 12.1.99.56 (Visual Studio Community)
Commit: xamarin-android/main/43243b4
Android SDK: /Users/me/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
6.0 (API level 23)
8.1 (API level 27)

SDK Tools Version: 26.1.1
SDK Platform Tools Version: 31.0.3
SDK Build Tools Version: 30.0.3

Build Information:
Mono: c633fe9
Java.Interop: xamarin/java.interop/main@79744f61
ProGuard: Guardsquare/proguard/v7.0.1@912d149
SQLite: xamarin/sqlite/3.36.0@a575761
Xamarin.Android Tools: xamarin/xamarin-android-tools/main@a519

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,377 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.