From 5b3bdcb6e07b2a8bf0675f64ed987b16fb4402a7 Mon Sep 17 00:00:00 2001 From: LingASDJ <2735951230@qq.com> Date: Mon, 3 Apr 2023 21:16:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E6=9E=84=E5=BB=BA=E7=BA=A7?= =?UTF-8?q?=E5=88=ABGradle=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -添加阿里云国内镜像 -添加一些Gradle注释 --- build.gradle | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/build.gradle b/build.gradle index 3f284d4..ce26d55 100644 --- a/build.gradle +++ b/build.gradle @@ -1,19 +1,27 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. + + buildscript { repositories { + maven { url 'https://maven.aliyun.com/repository/google' } + maven{ url 'https://maven.aliyun.com/repository/jcenter'} google() - jcenter() mavenCentral() - maven { url 'https://repo1.maven.org/maven2/' } + maven {url 'https://dl.google.com/dl/android/maven2/'} } dependencies { + //noinspection AndroidGradlePluginVersion classpath 'com.android.tools.build:gradle:7.2.0' -// classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.3.5" - classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.0' - classpath 'com.google.gms:google-services:4.3.14' - classpath 'com.google.firebase:perf-plugin:1.4.2' - classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.2' + //Do n't Update + classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.0' + + //noinspection GradleDependency + classpath 'com.google.gms:google-services:4.3.14' + //noinspection GradleDependency + classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.2' +// classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.3.5" + classpath 'com.google.firebase:perf-plugin:1.4.2' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files @@ -23,12 +31,14 @@ buildscript { allprojects { repositories { + maven { url 'https://maven.aliyun.com/repository/google' } + maven{ url 'https://maven.aliyun.com/repository/jcenter'} google() - jcenter() + mavenCentral() maven { url "https://jitpack.io" } - maven { url 'https://repo1.maven.org/maven2/' } + maven {url 'https://dl.google.com/dl/android/maven2/'} } }