Browse Source

update gradle

lyq.me@qq.com 2 years ago
parent
commit
15294642a2
2 changed files with 7 additions and 4 deletions
  1. 2 2
      app/build.gradle
  2. 5 2
      build.gradle

+ 2 - 2
app/build.gradle

@@ -6,11 +6,11 @@ def cmd2 = 'git describe --tags'
 def version = cmd2.execute().text.trim()
 
 android {
-    compileSdkVersion 31
+    compileSdkVersion 33
     defaultConfig {
         applicationId "me.yoqi.calculator"
         minSdkVersion 16
-        targetSdkVersion 31
+        targetSdkVersion 33
         versionCode gitVersion
         versionName version
         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

+ 5 - 2
build.gradle

@@ -1,7 +1,9 @@
 buildscript {
     repositories {
         google()
-        maven{url'http://maven.aliyun.com/nexus/content/groups/public/'}
+        mavenCentral()
+        // maven{url'http://maven.aliyun.com/nexus/content/groups/public/'}
+        
         
     }
     dependencies {
@@ -12,7 +14,8 @@ buildscript {
 allprojects {
     repositories {
         google()
-        maven{url'http://maven.aliyun.com/nexus/content/groups/public/'}
+        mavenCentral()
+        // maven{url'http://maven.aliyun.com/nexus/content/groups/public/'}
     }
 }