Gradle

https://docs.gradle.org/current/userguide/userguide.html

tips

  1. 打开AS,左上角File-->Settings-->Build、Execution、Deployment-->Build Tools-->Gradle

    offline work启动离线配置

Gradle version

https://developer.android.com/studio/releases/gradle-plugin.html

top path build.gradle

buildscript {
  ...
  dependencies {
    classpath 'com.android.tools.build:gradle:2.3.1'//这里的是Gradle plugin版本
  }
}

在 gradle/wrapper/gradle-wrapper.properties

...
distributionUrl = https\://services.gradle.org/distributions/gradle-3.3-all.zip //这里的是Required Gradle version
...

详情请见:https://developer.android.com/studio/releases/gradle-plugin.html

Last updated

Was this helpful?