From 4bc924d0ce29560a5e1ad1adf1042de032d954a1 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期四, 04 十二月 2025 14:50:56 +0800
Subject: [PATCH] 2025年12月04日14:50:54

---
 build.gradle |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/build.gradle b/build.gradle
index 15d7362..eff2298 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,7 +1,10 @@
 // Top-level build file where you can add configuration options common to all sub-projects/modules.
-
+apply from:"config.gradle"
 
 buildscript {
+    ext {
+        agp_version = '4.1.3'
+    }
     repositories {
         google()
         mavenCentral()
@@ -11,15 +14,17 @@
             url "https://jitpack.io"
         }
         maven { url 'https://developer.huawei.com/repo/' }//锛堝崕涓烘瀬鍏夋帹閫侊級
+        maven { url 'https://repo1.maven.org/maven2/' }
 
     }
     dependencies {
-        classpath "com.android.tools.build:gradle:4.1.2"
+        classpath "com.android.tools.build:gradle:$agp_version"
         classpath 'io.github.didi.dokit:dokitx-plugin:3.5.0.1'
         // NOTE: Do not place your application dependencies here; they belong
         // in the individual module build.gradle files
         //澧炲姞AGC鎻掍欢閰嶇疆锛屼互渚胯兘鍚屾鈥渁gconnect-services.json鈥濇枃浠朵腑鐨勪俊鎭�.锛堝崕涓烘瀬鍏夋帹閫侊級
         classpath 'com.huawei.agconnect:agcp:1.6.1.300'
+        classpath 'com.google.gms:google-services:4.3.15'  // Google Services 鎻掍欢
     }
 }
 
@@ -47,6 +52,8 @@
         maven {
             url 'https://developer.huawei.com/repo/'
         }
+        maven { url 'https://repo1.maven.org/maven2/' }
+        maven {  url 'https://maven.aliyun.com/nexus/content/repositories/releases/' }
     }
 }
 

--
Gitblit v1.8.0