Android模拟器消耗过多的CPU [英] Android emulator consume too much CPU

查看:654
本文介绍了Android模拟器消耗过多的CPU的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Visual Studio 2019用于移动应用程序开发.我使用Android模拟器已有很长时间了,但仅在上个月才遇到一些问题.

I use Visual Studio 2019 for mobile application development. I use Android Emulator for a long time but I have some issues with it only during the last month.

我已经通过Android设备管理器创建了一些虚拟设备. hw.gpu.mode 属性设置为 auto .当我在模拟器中运行此设备时,一切运行正常.仿真非常快速且没有问题.但是,当我单击仿真器关闭按钮并保存了设备状态时,所有内容都会长时间冻结.我的操作系统对任何用户输入均无响应. 5-10分钟后,模拟器将最终关闭.

I have created some virtual device by Android Device Manager. The hw.gpu.mode property is set to auto. When I run this device in the emulator everything is running perfectly. Emulation is very fast and without problems. But when I click on the emulator close button and the device state is saved then everything freezes on a long time. My OS is not responding on any user input. After 5-10 minutes is emulator closed finaly.

您是否知道如何解决模拟器关闭?我不知道为什么模拟器终止要花这么多时间.

Do you have some idea how to resolve emulator closing? I have no idea why emulator terminating takes so much time.

推荐答案

所以请以为我找到了解决问题的正确原因.我使用连接到笔记本电脑的扩展坞.当我将显示器直接连接到笔记本电脑时,所有问题都消失了.

So think that I found the right reason for my problems. I use a docking station connected to my laptop. When I connect my display to my laptop directly, all problems disappeared.

这篇关于Android模拟器消耗过多的CPU的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆