我正在尝试将 Firebase Performance Monitoring 集成到我已成功安装 Firebase 的应用程序中(事实上,我已经在此应用程序中使用 Crashlytics)。
文档指出,要使用 Firebase 性能监控,设备必须安装 Google Play 服务。
但是,我的问题是我发现文档与 Play 商店中可用的 Google Play 服务的实际版本之间似乎存在大量不一致。
Before you begin, you need a few things set up in your environment:
- A device running Android 4.0 (Ice Cream Sandwich) or newer, and Google Play services 16.1.2 or higher
- 另外,further in that same page ,它说:
Test your app using an Android emulator with a recent image and Google Play services 15.0.0 or later, or using a test device with Google Play services 15.0.0 or later.
另一方面,我设备(运行 Android 6.0.1)上的 Play 商店应用显示我的 Google Play 服务是最新,版本是 13.2.80,2018 年 9 月 6 日更新:
最重要的是,APK Mirror显示迄今为止最新的稳定版本是 14.3.66,更新于 2018 年 10 月 3 日
尽管如此,the official release notes显示没有 13.2.80 或 14.3.66 版本,并且从 15.0.0 版本开始,于 4 月 12 日发布(将近六个月之前 13.2.80!),他们针对不同的产品使用不同版本的 SemVer。
所以我的问题是:如何在我的设备上安装 Firebase 性能监控所需的正确版本的 Google Play 服务?
对于为什么我安装的这个 13.2.80 版本或 APK 镜像中提供的 14.3.66 版本没有在官方发行说明中提及的任何澄清,我们也将不胜感激。
最佳答案
您的设备 (6.0.1) 上尚未获得 Google 更新,最新版本的 Android 操作系统已更新至稳定版 Google Play 服务 14.3.66。因此,您可以在模拟器或任何其他设备上测试您的应用程序。
关于android - Firebase 性能监控所需的正确版本的 Google Play 服务是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52770193/