将admob 15.0.0与最新的支持库一起使用时,Gradle冲突 [英] Gradle conflict when using admob 15.0.0 with the lastest support library

本文介绍了将admob 15.0.0与最新的支持库一起使用时,Gradle冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 com.google.android.gms:play-services-ads:12.0.1。
和android支持版本27.1.1。

I am using 'com.google.android.gms:play-services-ads:12.0.1'. and android support version 27.1.1.

当我尝试将广告库升级到最新版本(15.0.0)时,出现错误消息,提示我必须使用相同的版本规范。参见下图。

when I try to upgrade my ads library to the latest (15.0.0) I get an error saying that I must use the same version specification. See image below.

有没有办法请同时使用supportLibraries和play-services-ads的最新版本?

Is there a way to use the latest version for both the supportLibraries and the play-services-ads ?

请注意,当我使用play-services-ads 12.0版本时不存在此问题。 1

Note that this problem does not exist when i use the play-services-ads version 12.0.1

推荐答案

您可以通过将支持库添加到依赖项块来尝试覆盖冲突的支持库:

You can try overriding the conflicted support library by adding the support library to your dependencies block:

implementation 'com.android.support:customtabs:27.1.1'

这篇关于将admob 15.0.0与最新的支持库一起使用时,Gradle冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆