Android studio hang on “Gradle build running” on w

2019-09-08 09:50发布

问题:

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".