zftlive/build.gradle

43 lines
1.5 KiB
Groovy
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
//这一点非常重要那就是gradle build tools的版本设置成1.1.2以上因为以前的版本有严重的bug
classpath 'com.android.tools.build:gradle:2.3.3'
//maven打包需要android-maven-plugin (:1.5指定版本或者:latest.release最新版本)
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
//上传Bintray需要 1.7.1
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'
//最新版本需要配合gradle3.0+,对应关系https://github.com/dcendents/android-maven-gradle-plugin
//classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
}
}
//统一编译环境
//minSdkVersion <= targetSdkVersion <= compileSdkVersion
ext {
// compileSdkVersion = 23 //编译SDK版本
// buildToolsVersion = "25.0.3"//编译SDK工具版本
// minSdkVersion = 9 //兼容最低版本
// targetSdkVersion = 22 //23需要特殊处理动态授权
compileSdkVersion = 28
//24+版本解决[too many classes in main-dex-list, main dex capacity exceeded] v4.2.0 20170704
buildToolsVersion = "28.0.3"
minSdkVersion = 16
//23需要特殊处理动态授权
targetSdkVersion = 28
}
allprojects {
repositories {
maven { url "https://jitpack.io" }
maven { url "https://dl.bintray.com/zengfantian/android"}
jcenter()
}
}