Gradle 需要太多构建 [英] Gradle take too much to build
本文介绍了Gradle 需要太多构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 Android studio,当我构建一个项目时,它会从 Grandle 控制台给我:Executing tasks: [:app:assembleDebug]' ,它卡在上面,没有任何进展!>
I'm use Android studio , and when i build a project , it's give me from Grandle console : Executing tasks: [:app:assembleDebug]' , and it's get stuck on it , and give me no progress !
推荐答案
好吧,我不知道你是否还在寻找解决方案..但这可能会帮助某人,总有一天:
Well I don't know if you're still looking for a solution..but this might help someone, someday :
- 转到
.gradle
文件夹 (C:\Users\your_user_name\.gradle). - 创建一个
gradle.properties
文件(如果它不存在). 在其中添加以下几行:
- Go to the
.gradle
folder (C:\Users\your_user_name\.gradle). - Create a
gradle.properties
file (if it does not exist). Add these lines in it :
org.gradle.daemon=true
org.gradle.parallel=true
这篇关于Gradle 需要太多构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文