如何下载GOOGLE服务?

时间:2018-06-30 17:19:36

标签: android-studio gradle build.gradle jcenter

我在android studio 3.1.3中启动新项目; ... gradle同步的唯一问题是下载失败

https://dl.google.com/dl/android/maven2/com/google/gms/google-services/4.0.1/google-services-4.0.1.pom'” ..和

'https://jcenter.bintray.com/com/google/gms/google-services/4.0.1/google-services-4.0.1.pom'

我每次连接正常时都会检查一次,但无法下载这些文件§§!!!!

请分享任何建议..

      // Top-level build file where you can add configuration options common 
      to all sub-projects/modules.

buildscript {

repositories {
    google()
    jcenter()



}
dependencies {
    classpath 'com.google.gms:google-services:4.0.1'



    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
  }
 }

 allprojects {
  repositories {
    google()
    jcenter()
    maven {
        url "https://maven.google.com"
    }



   }
  }

task clean(type: Delete) {
delete rootProject.buildDir
  }

Buid.gradle

#Thu Jun 28 09:24:59 GMT-12:00 2018
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip

渐变包装属性

0 个答案:

没有答案