android - Gradle 无法下载 com.google.android.gms play-services-ads/15.0.0/play-services-ads.pom
问题描述
我正在尝试将 admob 横幅广告添加到 android 应用程序中。但是当我将“implementation'com.google.android.gms:play-services-ads:15.0.0'”放入依赖项时,gradle 无法下载它..任何帮助
// 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.0.0'
// 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
}
解决方案
使用implementation 'com.google.android.gms:play-services-ads:15.0.1'
而不是 15.0.0
还分享更多细节,以便我们提供更准确的答案
推荐阅读
- django - Django外键创建表单获取实例
- java - 为什么我的 ImageView 可以在 Windows 上运行,但不能在 Mac 上运行
- apache - 失败的apache2 http服务器
- javascript - React Performance:维护事件处理程序道具的持续引用的好策略是什么?
- git - 将本地 git 存储库与 Ansible Tower 一起使用
- angular - 我可以将整个 Bootstrap 项目添加到新的 Angular 项目中吗?
- python - 当我将数组中的具体值与整数值进行比较时出现 ValueError
- assembly - 从 Rust 更改 x86 中的执行堆栈
- javascript - 为什么 {a:1}['a'] 等于 ['a'] 并且 console.log( {a:1}['a'] ) 等于 1?
- java - Wildfly @Remote 接口 JNDI 在同一服务器中的 2 个耳朵之间查找