【发布时间】:2018-05-17 17:14:59
【问题描述】:
在加载com.google.android.gms:play-services-*包时,需要在不同的包中使用相同的版本。
我正在导入 gms-location 和 gms-analytics 使用:
implementation 'com.google.android.gms:play-services-location:15.0.0'
implementation 'com.google.android.gms:play-services-analytics:15.0.0'
我在这两个版本中都使用15.0.0,因为location 最新版本是15.0.1,但分析正在跳过15.0.1,最新版本是15.0.2。
所以15.0.0 是最新的通用版本。
版本列表可以在这里看到: https://dl.google.com/dl/android/maven2/index.html
我收到一个关于 com.google.android.gms:ads-identifier 的错误(它以某种方式自行导入)它的版本是 15.0.1 - 冲突会在发布版本中产生运行时问题。
如何摆脱 ads-identifier ?
【问题讨论】:
标签: android android-gradle-plugin android-build