Browse Source

build.gradle修改

niusongtao@dl-cg.com 5 years ago
parent
commit
aa3b1e66b5
2 changed files with 9 additions and 2 deletions
  1. 5 0
      .idea/jarRepositories.xml
  2. 4 2
      build.gradle

+ 5 - 0
.idea/jarRepositories.xml

@@ -31,5 +31,10 @@
       <option name="name" value="maven2" />
       <option name="url" value="https://jitpack.io" />
     </remote-repository>
+    <remote-repository>
+      <option name="id" value="maven" />
+      <option name="name" value="maven" />
+      <option name="url" value="http://maven.aliyun.com/nexus/content/groups/public" />
+    </remote-repository>
   </component>
 </project>

+ 4 - 2
build.gradle

@@ -6,8 +6,9 @@ buildscript {
     repositories {
         google()
         jcenter()
-        maven { url 'https://maven.google.com' }
+//        maven { url 'https://maven.google.com' }
         maven { url 'https://jitpack.io' }
+        maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }
     }
     dependencies {
         classpath 'com.android.tools.build:gradle:3.6.1'
@@ -22,8 +23,9 @@ allprojects {
     repositories {
         google()
         jcenter()
-        maven { url 'https://maven.google.com' }
+//        maven { url 'https://maven.google.com' }
         maven { url 'https://jitpack.io' }
+        maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }
     }
 }