突然,当我想在Android模拟器中运行我的Xamarin Forms代码时,我开始遇到以下错误 . 我已将Android Manifest中的INTERNET设置为已选中 .

{System.Net.Http.HttpRequestException:发送请求时发生错误---> System.Net.WebException:错误:System.Net.WebConnection上的NameResolutionFailure d _16.MoveNext()[0x00044] in:0 --- End抛出异常的先前位置的堆栈跟踪---在System.Runtime.CompilerServices.TaskAwaiter的<43dbbdc147f2482093d8409abb04c233>中的System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task任务)[0x0003e]中.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task任务)[0x00028]在<43dbbdc147f2482093d8409abb04c233>:0中的System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(System.Threading.Tasks.Task任务)[0x00008] in <43dbbdc147f2482093d8409abb04c233>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable ConfiguredTaskAwaiter.GetResult()[0x00000] in <43dbbdc147f2482093d8409abb04c233>:0 at System.Net.WebConnection d__19.MoveNext()[0x000cc] in:0 ---来自先前位置的堆栈跟踪结束抛出异常的地方---在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading)的<43dbbdc147f2482093d8409abb04c233>中的System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task任务)[0x0003e] .Tasks.Task任务)[0x00028]在<43dbbdc147f2482093d8409abb04c233>:0中的System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(System.Threading.Tasks.Task任务)[0x00008]在<43dbbdc147f2482093d8409abb04c233>:0中的System.Runtime.CompilerServices .ConfiguredTaskAwaitable 1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <43dbbdc147f2482093d8409abb04c233>:0 at System.Net.WebOperation+<Run>d__57.MoveNext () [0x0009a] in <b78695579ed9422b8bc80218eeda782c>:0 --- End of stack trace from previous location where exception was thrown --- at System.Net.WebCompletionSource 1 d__15 [T] .MoveNext()[0x00094] in:0 ---从抛出异常的上一个位置开始的堆栈跟踪---在System.Net.HttpWebRequest d__241 1[T].MoveNext () [0x000ba] in <b78695579ed9422b8bc80218eeda782c>:0 --- End of stack trace from previous location where exception was thrown --- at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x0001d] in <b78695579ed9422b8bc80218eeda782c>:0 at System.Threading.Tasks.TaskFactory 1 [TResult] .FromAsyncCoreLogic( System.IAsyncResult,System.Net .HttpClientHandler d__64 . MoveNext()[0x0041d] in:0 ---内部异常堆栈跟踪结束---在System.Net.Http.HttpClientHandler d__64.MoveNext()[0x00478] in:0 ---来自先前位置的堆栈跟踪结束抛出异常的地方---在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading)的<43dbbdc147f2482093d8409abb04c233>中的System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task任务)[0x0003e] .Tasks.Task任务)[0x00028]在<43dbbdc147f2482093d8409abb04c233>:0中的System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(System.Threading.Tasks.Task任务)[0x00008]在<43dbbdc147f2482093d8409abb04c233>:0中的System.Runtime.CompilerServices .ConfiguredTaskAwaitable 1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <43dbbdc147f2482093d8409abb04c233>:0 at System.Net.Http.HttpClient+<SendAsyncWorker>d__49.MoveNext () [0x000ca] in <f26106f7890945d7922088b4caacae4a>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <43dbbdc147f2482093d8409abb04c233>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <43dbbdc147f2482093d8409abb04c233>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <43dbbdc147f2482093d8409abb04c233>:0 at System.Runtime.CompilerServices.TaskAwaiter 1 [TResult] .GetResult()[0x00000]位于<43dbbdc147f2482093d8409abb04c233>:0位于PetApp.MainPage d _2.MoveNext()[0x000bc]位于C:\ Develop \ petapp \ PetApp \ PetApp \ MainPage.xaml.cs: 38}