maven.google.com 镜像

报错

A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugApkCopy'.
   > Could not resolve com.android.support:support-v4:27.+.
     Required by:
         project :
      > Could not resolve com.android.support:support-v4:27.+.
         > Failed to list versions for com.android.support:support-v4.
            > Unable to load Maven meta-data from https://maven.google.com/com/android/support/support-v4/maven-metadata.xml.
               > Could not GET 'https://maven.google.com/com/android/support/support-v4/maven-metadata.xml'.
                  > Connect to maven.google.com:443 [maven.google.com/216.58.200.238] failed: Connection timed out: connect

更换国内镜像

maven { url "https://maven.aliyun.com/repository/google"}
maven { url "https://maven.aliyun.com/repository/public" }
maven { url "https://maven.aliyun.com/repository/jcenter" }
maven { url "https://maven.aliyun.com/repository/gradle-plugin" }

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注