Google Play服务广告?

时间:2018-06-28 12:05:37

标签: android-gradle admob google-play-services build.gradle jcenter

我无法将android studio App Admob添加到应用中。

grandle无法下载此

'https://dl.google.com/dl/android/maven2/com/google/gms/google-services/3.1.1/google-services-3.1.1.pom'。

无法获取'https://jcenter.bintray.com/com/google/gms/google-services/3.1.1/google-services-3.1.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.android.tools.build:gradle:3.1.3'


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

allprojects {
repositories {
    google()
    jcenter()
}
}

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

SCREENSHOTS

SCREENSHOTS1

SCREENSHOTS2

SCREENSHOTS3

SCREENSHOTS4

SCREENSHOTS5

0 个答案:

没有答案