找不到com.android.tools.build:gradle:5.6 [英] Could not find com.android.tools.build:gradle:5.6

查看:117
本文介绍了找不到com.android.tools.build:gradle:5.6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的gradle有问题,我尝试了许多在stackoverflow和其他文档中找到的解决方案,但仍然无法正常工作,请帮帮我

I have a problem with my gradle, i have try many solution that i have found on stackoverflow and other documentation but it still doesn't work, please help me

推荐答案

不要将gradle与Android Gradle插件混淆.

Don't confuse gradle with the Android Gradle plugin.

classpath 'com.android.tools.build:gradle:5.6'

这是Android Gradle插件, 5.6不存在.

It is the Android Gradle plugin and 5.6 doesn't exist.

使用最新的稳定版本:

classpath 'com.android.tools.build:gradle:3.5.0'

查看发行说明,了解其他版本.

要更改渐变版本,请编辑文件gradle/wrapper/gradle-wrapper.properties

distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip

官方文档中的更多信息.

这篇关于找不到com.android.tools.build:gradle:5.6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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