Emulator from Android Studio starts “thinking” every few seconds and doesn't let me debug

你离开我真会死。 提交于 2019-12-24 09:01:07

问题


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.

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 Version 3.1.2

How can I make this stop happening?


回答1:


Solved thanks to the 6th response to Android Studio is slow (how to speed up)?

An anti-virus is causing the slow-down

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

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



来源:https://stackoverflow.com/questions/50623384/emulator-from-android-studio-starts-thinking-every-few-seconds-and-doesnt-let

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!