Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trouble deploying release version of Xamarin.Android app

I'm getting the following error when the app finishes installing on the emulator using Xamarin Release run tool.

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 ran from Xamarin compiler works just fine.

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

like image 821
Oscar Swanros Avatar asked May 09 '13 02:05

Oscar Swanros


1 Answers

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

like image 106
nightsnaker Avatar answered Sep 23 '22 19:09

nightsnaker