我目前正在尝试通过Android SDK和Tools对话框安装Android模拟器。
但是,我收到了错误消息:
操作失败:安装Android Emulatorv31.2.10“指定的参数超出了有效值的范围”。
我已经删除了所有设置的设备,但仍然没有成功。至于SDK Build Tools,我安装了33、32和31,还有平台,33、32、31也都安装了。
日志:
[2022-11-09 13:53:41.5] WARNING: [Resiliency.Polly.Policies]: Delegate has thrown System.Threading.Tasks.TaskCanceledException: A task was canceled.
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Xamarin.Installer.AndroidSDK.Manager.Helper.<CheckIfNetworkAvailable>d__38.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Polly.Retry.AsyncRetryEngine.<ImplementationAsync>d__0`1.MoveNext(), retrying...
[2022-11-09 13:53:42.6] ACTION: Install start component emulator
[2022-11-09 13:53:42.6] EXCEPTION: Downloading Android Emulator v31.2.10 failed, Details: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
at Xamarin.Installer.AndroidSDK.MonitorWithTotalProgress.set_SubComponentsCount(Int32 value)
at Xamarin.Installer.AndroidSDK.Manager.AndroidSDKComponent.<Install>d__66.MoveNext()
[2022-11-09 13:53:42.6] ACTION: Install result InstallationError component emulator
[2022-11-09 13:53:42.6] ACTION: ApplySdkComponentChanged uninstall:[] install:[emulator]