应用程序在发布版本中不起作用

App doesn't work in release version

我正在使用 xamarin Cross Platform 创建一个应用程序。一切都在调试中工作,但是当我在发布版本中构建应用程序时,应用程序崩溃了。应用程序输出:

 ERROR:
 [mono] Unhandled Exception: [mono] System.MissingMethodException:
 Method not found: 'System.Net.Http.HttpClient.GetAsync'. 
 [mono]   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[<LoadData>d__0] (POSSector.Mobile.<LoadData>d__0& stateMachine) 
 [0x00000] in <filename unknown>:0  
 [mono]   at POSSector.Mobile.LoginViewModel.LoadData ()
 [0x00000] in <filename unknown>:0  
 [mono]   at POSSector.Mobile.LoginCommand+<Bind>d__3.MoveNext () [0x00000] in <filename unknown>:0  
 [mono] --- End of stack trace from previous location where exception was thrown --- [mono]   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw ()
 [0x00000] in <filename unknown>:0  [mono]   at System.Runtime.CompilerServices.TaskAwaiter.GetResult () 
 [0x00000] in <filename unknown>:0  [mono]   at POSSector.Mobile.LoginCommand+<Execute>d__0.MoveNext () 
 [0x00000] in <filename unknown>:0  
 [mono-rt] [ERROR] FATAL UNHANDLED EXCEPTION: System.MissingMethodException: Method not found: 'System.Net.Http.HttpClient.GetAsync'.

在选项 - Android 构建链接器/我设置 Don link 并且我的应用程序工作! Info for problem