Problem with deploying version of Xamarin.Android application

I get the following error when the application finishes installing to the emulator using the Xamarin launcher launcher.

GREF GC Threshold: 1800 Unhandled Exception: System.Net.WebException: Error: NameResolutionFailure at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 at CallRestService.Activity1.<OnCreate>m__0 (IAsyncResult ar) [0x00000] in <filename unknown>:0 at System.Net.WebAsyncResult.CB (System.Object unused) [0x00000] in <filename unknown>:0 

The emulator is running Android 2.3.3, and the Debug build launched from the Xamarin compiler works fine.

Any hint on why this is happening and how to solve this problem?

+4
source share
1 answer

There was the same problem. Solved by adding <uses-permission android:name="android.permission.INTERNET" /> to the manifest.

+10
source

Source: https://habr.com/ru/post/1479837/


All Articles