Android
  • Introduction
  • Android Studio
    • AS的项目结构
    • adb
    • aapt
    • dx
    • Gradle
    • Kotlin on android
  • Smaller
  • decompiler
  • MISC
  • 框架 framework
  • 设计模式
  • dex
  • reinforce加固
  • code
    • Java Tips
      • 负数 negative
      • The Java Tutorials
        • 原始数据类型 Primitive Data Types
      • 运算符
        • 一元运算符
        • 算术运算符
        • 移位运算符
        • 关系运算符
      • 逻辑运算符
        • 逻辑 非 ! 关系值表
        • 逻辑 与 && 关系值表
        • 逻辑 或 || 关系值表
        • 与 & And
        • 或 | Or
        • 非 ~ Nor
        • 异或 ^ Xor
        • 赋值运算符
        • tips
      • == equals
      • Try Catch finally
        • 有意思的东西
      • String、StringBuilder、StringBuffer区别
      • inner classes、nested static classes
    • runtime_memory
    • javaStackTrace
    • Guava
    • FFMPEG
    • GoogleSamples
    • Full Kotlin Reference
    • release屏蔽Log代码
    • Thread
  • ANR
  • 注解改进代码检查
Powered by GitBook
On this page
  • tips
  • Gradle version

Was this helpful?

  1. Android Studio

Gradle

PreviousdxNextKotlin on android

Last updated 5 years ago

Was this helpful?

tips

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

    offline work启动离线配置

Gradle version

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://docs.gradle.org/current/userguide/userguide.html
https://developer.android.com/studio/releases/gradle-plugin.html
https://developer.android.com/studio/releases/gradle-plugin.html