图片
异常
All com.google.android.gms libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions
9.8.0
,10.2.0
. Examples includecom.google.android.gms:play-services-appindexing:9.8.0
andcom.google.android.gms:play-services-base:10.2.0
我正在混合版本 9.8.0
和 10.2.0
。
最新版本
com.google.android.gms:play-services-fitness:
10.2.0
com.google.android.gms:play-services-appindexing:
9.8.0
问题
我必须使用 com.google.android.gms:play-services-fitness:10.2.0
,因为它包含我需要的最新更新。
但是,com.google.android.gms:play-services-appindexing
没有 10.2.0
版本,9.8.0
> 是最新的。
问题
因此,我无法降级 fitness,因为我需要最新版本,但 appindexing 没有与其匹配的版本。
遇到这种情况我该怎么办?
最佳答案
应用索引已移至 Firebase bundle 。很多东西正在迁移到那里,如果您不使用 Firebase,我建议迁移并检查它。这当然似乎是这一切的 future 发展方向。
有关如何迁移 AppIndexing 元素的更多信息,请访问 here
关于android - 所有 com.google.android.gms 库必须使用完全相同的版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43088139/