gradle build running 时间太 长 。

来源:互联网 发布:江宁人才网最新域名 编辑:程序博客网 时间:2024/06/04 18:32

找到工程下的gradle /wrapper/gradle-wrapper.properties

打开查看
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https://services.gradle.org/distributions/gradle-3.3-all.zip
我的是 gradle-3.3-all.zip
找到对应的 gradle 包 并下载
ubantu /home/yonghu/.gradle/wrapper/dists/gradle-3.3-all/xxxxxxx/ 下边放入 gradle-3.3-all.zip

其他版本相同的操作方式。
重新启动 android studio 然后 缺少什么自动会提示。一般不需要翻墙了 就能正常build了

0 0
原创粉丝点击