Android studio hang on “Gradle build running” on windows 7 machine

给你一囗甜甜゛ 提交于 2019-12-13 07:14:34

问题


I have an app that I am working on in Android studio and I have updated Android studio yesterday. Now when I open Android-Studio it hangs on "Gradle Build running" and I have all my R. red for almost an hour. I am running windows 7 64-bit and have around a dozen aapt.exe processes open.

What I have tried so far,

  1. Exit and restart AS

  2. Invalidate Caches and Restart

  3. File->Settings->Build, Execution, Deployment->Gradle check/uncheck

Offline work

all to no avail. Can someone point me a solution?


回答1:


Gradle will download any dependencies it needs, for Studio, this could be considered due to which may take long time.

May be possible that where these dependencies are trying to go in your file system is somehow write-protected,

Try doing : (for windows)

File --> Settings --> HTTP Proxy(Search for http proxy) and set to "None".



来源:https://stackoverflow.com/questions/35760275/android-studio-hang-on-gradle-build-running-on-windows-7-machine

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