我知道有很多这样的问题,但没有找到任何一个Admob广告依赖,我只是想在我的应用中使用Admob广告,我从官方网站添加了广告依赖implementation 'com.google.android.gms:play-services-ads:15.0.0'
但是告诉我这个警告:
All gms/firebase libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 15.0.1, 15.0.0. Examples include com.google.android.gms:play-services-ads-identifier:15.0.1 and com.google.android.gms:play-services-ads:15.0.0 less... (Ctrl+F1)
There are some combinations of libraries, or tools and libraries, that are incompatible, or can lead to bugs. One such incompatibility is compiling with a version of the Android support libraries that is not the latest version (or in particular, a version lower than your targetSdkVersion.)
我只想在没有firebase的情况下使用广告依赖。
答案 0 :(得分:0)
检查您的app-gradle文件,您的依赖项存在冲突。更新以下
com.google.android.gms:play-services-ads:15.0.1