简体   繁体   English

android studio-卡在刷新项目构建gradle

[英]android studio - Stuck in refreshing project build gradle

I have this very strange problem today with one of my projects and then creating a new project . 今天,我的一个项目遇到了这个非常奇怪的问题,然后创建了一个新项目。

When I create a new project or open on of the projects , android studio open the project but then it stick on building gradle .All of my project has this line in build.gralde : classpath 'com.android.tools.build:gradle:1.2.3' 当我创建一个新项目或在其中打开一个项目时,android studio会打开该项目,但它会粘在构建gradle上。我所有的项目都在build.gralde中有这行:classpath'com.android.tools.build:gradle: 1.2.3'

all of the other project works fine and has no problem with gradle . 其他所有项目都运行正常,gradle没问题。

I replaced the .gradle folder from a working one but it didn't work .I restart my pc , invalidated it , restarted it . 我从工作的文件夹中替换了.gradle文件夹,但是它没有用。我重新启动我的电脑,使它无效,然后重新启动它。

At the end it says Gradle project sync failed or it stuck in refreshing gradle project and It couldn't create a new project ether . 最后,它说Gradle项目同步失败,或者卡在了gradle项目的刷新过程中,无法创建新的项目以太。

What should I do ? 我该怎么办 ? I'm using android studio version 1.2.2 and the gradle version is 2.2.1 for all of the projects. 我正在使用android studio版本1.2.2和gradle版本是2.2.1的所有项目。

Just be patient and go to C:\\Users\\USER_NAME.gradle\\wrapper\\dists\\YOUR_CURRENT_GRADLE to see how it is downloading. 请耐心等待,然后转到C:\\ Users \\ USER_NAME.gradle \\ wrapper \\ dists \\ YOUR_CURRENT_GRADLE以查看其下载方式。 On this file, press refresh to reload the content and see raw download speed. 在此文件上,按刷新以重新加载内容并查看原始下载速度。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM