无法找到最新版本的gradle [英] Latest version of gradle can't be found

查看:225
本文介绍了无法找到最新版本的gradle的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Gradle的最新版本是2.14.1,对不对?因此,我有这个:

gradle-wrapper.properties

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

gradle.build

  buildscript {
存储库{
mavenCentral()
jcenter()
}
依赖项{
classpath'com.android.tools.build:gradle:2.14.1'
}
}
code>

但是Android工作室表示无法找到它。

解决方案

版本Android Gradle Build工具完全独立于 Gradle



例如,是的,推荐Gradle 2.14.1 或更高,但最新稳定的Android Gradle Build工具是 2.2 .2

  classpath'com.android.tools.build:gradle:2.2 .2'






编辑(2017年3月)版本现在 3.3 或更高版本&构建工具 2.3


The latest version of Gradle is 2.14.1, right? Therefore, I have this:

gradle-wrapper.properties

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

gradle.build

buildscript {
    repositories {
        mavenCentral()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.14.1'
    }
}

But Android studio says it can't find it.

解决方案

The version of the Android Gradle Build tool is completely independent of Gradle.

For example, yes, the recommended Gradle is 2.14.1 or higher, but the latest stable Android Gradle Build tool is 2.2.2

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


EDIT (Mar. 2017) versions are now 3.3 or higher & build tool 2.3

这篇关于无法找到最新版本的gradle的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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