[英]how to configure gradle in androidstudio and my android project
this is my default gradle version. 这是我的默认gradle版本。
then this is my config in my project ,like this 那么这就是我项目中的配置,就像这样
however,when i set the gradle version in project structure,like this,my studio show a progress till now. 然而,当我在项目结构中设置gradle版本时,我的工作室显示了一个进展到现在。
i don't know whether is my config wrong,or other reason.Can any one tell me how to config the gradle? 我不知道我的配置是否错误或其他原因。任何人都可以告诉我如何配置gradle? thanks!
谢谢!
尝试取消选中“全局成绩”设置上的“脱机工作”。
AndroidStudio came with gradle-wrapper AKA ./gradlw so ideally you don't really need to install gradle on the machine. AndroidStudio附带了gradle-wrapper AKA ./gradlw,所以理想情况下你并不需要在机器上安装gradle。 Check the network settings if it takes too long for gradle to download all the dependencies.
如果gradle下载所有依赖项花费的时间太长,请检查网络设置。 And don't check offline mode :)
并且不要检查离线模式:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.