From 413aa463f8e036d21d0907d73534427d4cac7796 Mon Sep 17 00:00:00 2001 From: ring <313648148@qq.com> Date: Wed, 26 Dec 2018 17:30:35 +0800 Subject: [PATCH] upgrade gradle --- build.gradle | 10 +++++++++- demo/build.gradle | 6 +++--- gradle/wrapper/gradle-wrapper.properties | 2 +- library/build.gradle | 6 +++--- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/build.gradle b/build.gradle index cd74ded..c059a62 100644 --- a/build.gradle +++ b/build.gradle @@ -3,9 +3,13 @@ buildscript { repositories { jcenter() + maven { + url 'https://maven.google.com/' + name 'Google' + } } dependencies { - classpath 'com.android.tools.build:gradle:1.2.3' + classpath 'com.android.tools.build:gradle:3.1.2' } } @@ -15,5 +19,9 @@ allprojects { repositories { jcenter() + maven { + url 'https://maven.google.com/' + name 'Google' + } } } \ No newline at end of file diff --git a/demo/build.gradle b/demo/build.gradle index 8b3ed8d..be866d1 100644 --- a/demo/build.gradle +++ b/demo/build.gradle @@ -1,12 +1,12 @@ apply plugin: 'com.android.application' android { - compileSdkVersion 21 + compileSdkVersion 26 buildToolsVersion '21.1.1' defaultConfig { applicationId 'me.gujun.android.taggroup.demo' - minSdkVersion 8 - targetSdkVersion 21 + minSdkVersion 19 + targetSdkVersion 26 versionName project.VERSION_NAME versionCode Integer.parseInt(project.VERSION_CODE) } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 0c71e76..9cd76d8 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip diff --git a/library/build.gradle b/library/build.gradle index 87bfd43..cb8ffcc 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -1,10 +1,10 @@ apply plugin: 'com.android.library' android { - compileSdkVersion 21 + compileSdkVersion 26 buildToolsVersion '21.1.1' defaultConfig { - minSdkVersion 8 - targetSdkVersion 21 + minSdkVersion 19 + targetSdkVersion 26 } lintOptions { abortOnError false