Browse Source

更新gradle

liuyuqi-dellpc 2 years ago
parent
commit
2c97f531d8
4 changed files with 10 additions and 25 deletions
  1. 3 2
      app/build.gradle
  2. 5 6
      build.gradle
  3. 1 16
      gradle.properties
  4. 1 1
      gradle/wrapper/gradle-wrapper.properties

+ 3 - 2
app/build.gradle

@@ -55,7 +55,7 @@ android {
 
 dependencies {
     implementation fileTree(dir: "libs", include: ["*.jar"])
-    implementation 'androidx.appcompat:appcompat:1.2.0'
+    implementation 'androidx.appcompat:appcompat:1.3.0'
     implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
     implementation 'androidx.recyclerview:recyclerview:1.1.0'
 
@@ -63,8 +63,9 @@ dependencies {
     api 'com.squareup.okhttp3:logging-interceptor:3.11.0'
     api 'com.squareup.retrofit2:retrofit:2.2.0'
     api 'com.squareup.retrofit2:converter-gson:2.2.0'
-    implementation 'com.blankj:utilcodex:1.30.5'
 
+
+    implementation 'com.blankj:utilcodex:1.30.5'
     implementation 'com.github.bumptech.glide:glide:4.13.1'
     api 'com.netease.yunxin.kit.call:call-ui:1.8.1'
 }

+ 5 - 6
build.gradle

@@ -3,10 +3,11 @@ buildscript {
     repositories {
         google()
         maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
-        jcenter()
+        mavenCentral()
+
     }
     dependencies {
-        classpath 'com.android.tools.build:gradle:4.0.1'
+        classpath 'com.android.tools.build:gradle:7.2.2'
 
         // NOTE: Do not place your application dependencies here; they belong
         // in the individual module build.gradle files
@@ -20,7 +21,6 @@ allprojects {
         maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
         maven { url 'http://developer.huawei.com/repo/' }
         maven { url "https://jitpack.io" }
-        jcenter()
     }
 }
 
@@ -29,10 +29,9 @@ task clean(type: Delete) {
 }
 
 ext {
-    compileSdkVersion = 31
-    buildToolsVersion = "30.0.0"
+    compileSdkVersion = 32
     minSdkVersion = 21
-    targetSdkVersion = 30
+    targetSdkVersion = 32
 
     ndkAbis = [
             'armeabi-v7a',

+ 1 - 16
gradle.properties

@@ -1,21 +1,6 @@
-# Project-wide Gradle settings.
-# IDE (e.g. Android Studio) users:
-# Gradle settings configured through the IDE *will override*
-# any settings specified in this file.
-# For more details on how to configure your build environment visit
-# http://www.gradle.org/docs/current/userguide/build_environment.html
-# Specifies the JVM arguments used for the daemon process.
-# The setting is particularly useful for tweaking memory settings.
+
 org.gradle.jvmargs=-Xmx2048m
-# When configured, Gradle will run in incubating parallel mode.
-# This option should only be used with decoupled projects. More details, visit
-# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
-# org.gradle.parallel=true
-# AndroidX package structure to make it clearer which packages are bundled with the
-# Android operating system, and which are packaged with your app"s APK
-# https://developer.android.com/topic/libraries/support-library/androidx-rn
 android.useAndroidX=true
-# Automatically convert third-party libraries to use AndroidX
 android.enableJetifier=true
 android.injected.testOnly=false
 

+ 1 - 1
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-6.3-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip