gradle.build 问题 - 15.0.0 15.0.1 与广告标识符冲突
gradle.build issue - 15.0.0 15.0.1 conflict with ads-identifier
加载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
?
正如您在发布 notes 中看到的那样,就像 firebase 一样,播放服务库现在也有独立的版本。所以将它们与各自的版本一起添加:
Google Play services libraries after 15.0.0 now have independent
version numbers
implementation 'com.google.android.gms:play-services-location:15.0.1'
implementation 'com.google.android.gms:play-services-analytics:15.0.2'
同时检查您的 gms 插件是否是最新的:
classpath 'com.google.gms:google-services:3.3.1'
加载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
?
正如您在发布 notes 中看到的那样,就像 firebase 一样,播放服务库现在也有独立的版本。所以将它们与各自的版本一起添加:
Google Play services libraries after 15.0.0 now have independent version numbers
implementation 'com.google.android.gms:play-services-location:15.0.1'
implementation 'com.google.android.gms:play-services-analytics:15.0.2'
同时检查您的 gms 插件是否是最新的:
classpath 'com.google.gms:google-services:3.3.1'