org.gradle.api.artifacts.ResolveException:无法解析配置的所有依赖项':app:_debugCompile'

时间:2018-05-13 21:35:53

标签: google-admob google-play-services

我试图在我的Android应用程序上集成广告横幅,但是当我运行它时,我收到以下错误消息:

Could not find com.google.android.gms:play-services-ads:15.0.1.
Searched in the following locations:
file:/C:/Program Files/Android/Android 
Studio/gradle/m2repository/com/google/android/gms/play-services-        
ads/15.0.1/play-services-ads-15.0.1.pom
file:/C:/Program Files/Android/Android             
Studio/gradle/m2repository/com/google/android/gms/play-services- 
ads/15.0.1/play-services-ads-15.0.1.jar
https://jcenter.bintray.com/com/google/android/gms/play-services- 
ads/15.0.1/play-services-ads-15.0.1.pom
https://jcenter.bintray.com/com/google/android/gms/play-services-    
ads/15.0.1/play-services-ads-15.0.1.jar
file:/C:/Users/Mottia.....

关注Build.gradle文件:

apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.2"

defaultConfig {
    applicationId "com.onlines.mushafkareem"
    minSdkVersion 16
    targetSdkVersion 23
    versionCode 19
    versionName "1.1.0"
    multiDexEnabled true
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 
'proguard-rules.pro'
    }
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.google.android.gms:play-services-ads:15.0.0'
}

我认为这是一个与谷歌播放服务版本有关的错误, 有人可以帮我解决这个问题吗? 如果您需要任何其他信息,请提前通知。

0 个答案:

没有答案