android studio 3.0卡在“构建gradle项目信息” [英] android studio 3.0 stuck at "building gradle project info"

查看:156
本文介绍了android studio 3.0卡在“构建gradle项目信息”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天我要在Android Studio中创建一个新项目。我电脑上的Android Studio更新至3.0。当我创建一个新项目并完成设置过程时,AS停留在构建Gradle项目信息。



我在AS中多次遇到过这种情况2.3.3,我通过修改gradle distributionUrl来解决它们。但是这一次,它不起作用。

我希望有人能帮我一把。因为下载Gradle需要很长时间,当你的网络状况不是很好时,你必须下载它。

我自己的解决方案是:


1. 下载新版gradle ,如gradle-4.3-all.zip等,并将文件放入AS Gradle位置( Mac ):转到Application文件夹并打开AS的包,并将新Gradle放入PS:如果你没有找到新的gradle版本文件夹,那么你可以自己创建它。 Windows :就像前面的两个答案);

2。 断开您的Wifi或LAN;

3.像往常一样打开Android Studio 3.0;

4. 不要立即打开您的项目,转到优先选择部分优先;

5. 进入成绩单,进行设置并切换离线模式;

6。打开你想要的项目打开;

7.让AS为文件建立索引,修改gradle.properties,当它仍在索引时。

8. Turn在您的Wifi或LAN上,和AS将下载缺失的文件。
注意:请勿在下载时修改您的Android操作系统或其他文件

9. 关闭AS并重新打开该项目。没事的。 :-)



如果您仍然坚持构建Gradle项目信息,只需重做所有这些。仍不清楚?评论如下。


Today I was going to make a new project in Android Studio. The Android Studio on my computer is updated to 3.0. When I was creating a new project and finished the procedure of the settings, the AS stuck at "Building Gradle Project info".

I have met this situation several times in AS 2.3.3, and I solved them by modifying the gradle distributionUrl. But this time, it doesn't work.

I hope someone can give me a hand. Thanks anyway!

解决方案

Because downloading Gradle takes a lot of time when your network situation is not so good, you have to download it by yourself.

My solution is:

1. Download a new version of gradle, such as gradle-4.3-all.zip, etc., and put the file in your AS Gradle location (Mac: go to the Application folder and open the package of AS, and put the new gradle in the Gradle folder. PS: If your new gradle version folder is not found, then you can create it on your own.Windows: like the previous two answers);
2. Disconnect your Wifi or LAN;
3. Open Android Studio 3.0 as usual;
4. DO NOT OPEN YOUR PROJECT IMMEDIATELY, TURN TO THE PREFERENCE PART FIRST;
5. GO TO THE GRADLE PART, DO THE SETTINGS AND SWITCH THE OFFLINE MODE ON;
6. Open the project you want to open;
7. Let AS to index the file and modify the gradle.properties when it is still indexing.
8. Turn on you Wifi or LAN, and AS will download the missing file. ATTENTION: DO NOT MODIFY YOUR ANDROID MANIFEST OR OTHER FILES WHEN DOWNLOADING
9. Close AS and reopen the project. And everything will be fine. :-)

If you still stuck at "Building Gradle Project info", just redo all of these. Still not clear? Comment below.

这篇关于android studio 3.0卡在“构建gradle项目信息”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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