浏览代码

加入安卓环境的国内镜像

liukai 3 周之前
父节点
当前提交
ade8d708ed
共有 2 个文件被更改,包括 8 次插入0 次删除
  1. 3 0
      app/android/build.gradle
  2. 5 0
      app/android/settings.gradle

+ 3 - 0
app/android/build.gradle

@@ -1,5 +1,8 @@
 allprojects {
     repositories {
+        maven { url 'https://maven.aliyun.com/repository/google' }
+        maven { url 'https://maven.aliyun.com/repository/central' }
+        maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
         google()
         mavenCentral()
     }

+ 5 - 0
app/android/settings.gradle

@@ -10,6 +10,11 @@ pluginManagement {
     includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
 
     repositories {
+        maven { url 'https://maven.aliyun.com/repository/google' }
+        maven { url 'https://maven.aliyun.com/repository/central' }
+        maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
+        maven { url 'https://maven.aliyun.com/nexus/content/repositories/gradle-plugin' }
+        maven { url 'https://jitpack.io' }
         google()
         mavenCentral()
         gradlePluginPortal()