来自Android Studio的仿真器开始“思考",每隔几秒钟,不让我调试 [英] Emulator from Android Studio starts "thinking" every few seconds and doesn't let me debug

查看:100
本文介绍了来自Android Studio的仿真器开始“思考",每隔几秒钟,不让我调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我使用Android Studio中的仿真器调试应用程序时(单击调试"应用程序),系统都会显示带有旋转轮的鼠标箭头.编写任何东西都很困难,上下文菜单在我单击之前消失了……不仅烦人,而且无法正确调试.即使是写这个问题,我也必须停止模拟器.

Whenever I'm debugging an app using an emulator from Android Studio (clicking Debug 'app') the system shows the mouse arrow with a spinning wheel. It is very difficult to write anything, the context menu dissapears before I'm able to click...not only annoying but impossible to debug properly. Even for writing this question I had to stop the emulator.

我尝试了2个不同的应用程序(其中一个是非常基础的教程,因此代码中没有错误),只是在模拟器上打开而没有对应用程序收费,并使用了2个不同的虚拟设备(Nexus 5X API 27和Nexus) S API 22)具有相同的结果.

I have tried 2 different apps (one of them a very basic tutorial so that there are no errors in the code), just with the emulator on with no app charged, with 2 different Virtual Devices( Nexus 5X API 27 and Nexus S API 22) with the same result.

Android Studio版本3.1.2

Android Studio Version 3.1.2

我该如何停止呢?

推荐答案

感谢对

防病毒软件导致速度降低

An anti-virus is causing the slow-down

要解决此问题,您必须将正确的目录添加到 防病毒的排除的文件夹".假设您的Windows 用户名是用户名",并且您已经在C上安装了Android Studio: 驾驶.然后,您将要求从病毒中排除检查 以下目录:

To solve this, you will have to add the correct directories to the "excluded folders" of your anti-virus. Assume that your Windows username is "Username" and you have installed Android Studio on C: drive. You would then request to exclude from the virus check the following directories:

C:\Users\Username\.android
C:\Users\Username\.AndroidStudio2.2
C:\Users\Username\.gradle
C:\Users\Username\.m2
C:\Users\Username\AppData\Local\Android\Sdk

有关详细信息,请参见 https://stackoverflow.com/a/41951063/2729605

Extended details at https://stackoverflow.com/a/41951063/2729605

这篇关于来自Android Studio的仿真器开始“思考",每隔几秒钟,不让我调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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