Android Studio 停留在 Refreshing Gradle 项目上 [英] Android studio stuck at Refreshing Gradle project

查看:36
本文介绍了Android Studio 停留在 Refreshing Gradle 项目上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

已将 Android studio 更新至 1.2.2,后台进程不会结束.(刷新MemoryCards"Gradle 项目).

Updated Android studio to 1.2.2 and the background process wont end.(Refreshing 'MemoryCards' Gradle project).

已经一个多小时了,还忙吗?

It has been more than an hour now and its still busy?

这是否正常?为什么需要这么长时间?它是一个小应用程序.

Is this normal and why is it taking this long? its a small app.

这是我的idea.log:https://www.dropbox.com/s/syf12m3lxbww5k7/idea.log?dl=0

Here is my idea.log : https://www.dropbox.com/s/syf12m3lxbww5k7/idea.log?dl=0

更新:

在 android studio 中禁用我的代理设置,刷新过程继续并向我展示以下内容.

Disabled my proxy settings in android studio and the refreshing process continued and showed me the following.

下载 gradle zip 失败:

It failed at the download of the gradle zip :

所以我认为它需要这么长时间的原因是试图下载 gradle zip 文件 +- 60 Mb 并且我的互联网连接很慢......

So the reason I think that It takes this long it was trying to download the gradle zip file +- 60 Mb and my internet connection is slow...

因此,当我禁用代理设置但无法下载 gradle zip 文件时,该过程会继续...?所以它又失败了.

So the process continues when I disable the proxy settings but then it cant download the gradle zip file... ? so it fails again.

更新:

我使用了另一个 Internet 资源,它下载了 gradle 并继续该过程.

I used another Internet source and it downloaded the gradle and the process continued.

推荐答案

按以下顺序尝试一些事情:

A few things to try in the following order:

  1. 重启整个电脑,然后再试一次...

  1. Restart the entire PC, then try again...

如果失败则清除android studio的缓存,重新启动
android studio 然后再试一次..

If that fails then clear the cache for android studio, restart
android studio and try again..

禁用您的 PC/网络/Android 工作室上的任何代理,然后重试

Disable any proxies on your PC / network / Android studio then try again

如果这不起作用,请查看清除 gradle 文件并重新下载它们.请让我知道这是怎么回事,如果需要,我可以更新我的答案,并提供更多要做的事情.

If that doesn't work then look at clearing the gradle files and re-downloading them. Let me know how this goes please and I can update my answer with further things to do if needed.

这篇关于Android Studio 停留在 Refreshing Gradle 项目上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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