美文网首页
Android Plugin for Gradle releas

Android Plugin for Gradle releas

作者: lsyt0309 | 来源:发表于2018-09-21 16:02 被阅读0次

Android Plugin for Gradle release notes

Update the Android Plugin for Gradle

buildscript {
    repositories {
        // Gradle 4.1 and higher include support for Google's Maven repo using
        // the google() method. And you need to include this repo to download
        // Android plugin 3.0.0 or higher.
        google()
        ...
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.0'
    }
}

Update Gradle

Plugin version Required Gradle version
1.0.0 - 1.1.3 2.2.1 - 2.3
1.2.0 - 1.3.1 2.2.1 - 2.9
1.5.0 2.2.1 - 2.13
2.0.0 - 2.1.2 2.10 - 2.13
2.1.3 - 2.2.3 2.14.1+
2.3.0+ 3.3+
3.0.0+ 4.1+
3.1.0+ 4.4+

You can specify the Gradle version in either the File > Project Structure > Project menu in Android Studio, or by editing the Gradle distribution reference in the gradle/wrapper/gradle-wrapper.properties file. The following example sets the Gradle version to 4.4 in the gradle-wrapper.properties file.

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

相关文章

网友评论

      本文标题:Android Plugin for Gradle releas

      本文链接:https://www.haomeiwen.com/subject/iktznftx.html