Android的工作室非常缓慢积聚的gradle [英] Android studio very slow gradle build
问题描述
我是新来的Android Studio..whenever我跑我的项目需要的gradle用于检查build..I've约14分钟的解决方案,以提高建造速度为<一提到href=\"https://tausiq.word$p$pss.com/2015/02/24/android-speed-up-gradle-build-process-in-android-studio/\"相对=nofollow>这里
I'm new to Android Studio..whenever I run my project it takes around 14 mins for gradle build..I've check for solutions to improve build speed as mentioned in here
我gradle.properties文件:
My gradle.properties file:
## Project-wide Gradle settings.
org.gradle.daemon=true
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
org.gradle.parallel=true
org.gradle.configureondemand=true
但问题仍然是相同的,每一个线条都是暗淡的颜色,就像他们的注释行code。
当鼠标放在上面徘徊有其说,一个消息未使用的房产,这检验报告所有属性不是从属性文件外引用
but the problem is still the same and each of these lines are dim in color just like they were comment lines code. when the mouse is hovered on top there a message which says "Unused Property. This inspection reports all properties not referenced from outside of the properties file"
我怎么能解决这个问题?
谢谢
how can I fix this? Thanks
推荐答案
请 gradle.properties
文件中的 C:\\用户\\&lt;用户名&GT ;。\\ gradle这个(视窗)
那么,这一行添加到文件:
then,Add this line to the file:
org.gradle.daemon=true
这篇关于Android的工作室非常缓慢积聚的gradle的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!