找不到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
官方文档中的更多信息.