【问题标题】:How to decide on the version of google play services to use in the application when using any google play services api?使用任何 google play services api 时,如何决定在应用程序中使用的 google play services 版本?
【发布时间】:2016-09-27 11:21:03
【问题描述】:

我们将集成 Google SignIn(通过替换 Google Plus Login)。对于 Google SignIn,所需的最低 google play 服务版本为 8.4。如果我使用 Google 的 documentation,那么他们已经提到使用 9.2.1 版本。但是我们的很多应用程序用户都使用慢速连接网络,并且由于 9.2.1 相对较新,因此这些用户中的许多人可能不会在他们的设备上安装此更新。所以我的问题是,对于任何需要 google play 服务的 api,使用哪个版本?

1) 最新版本(在 Google 登录的情况下为 9.2.1)- Google 建议使用最新版本,因为它已修复错误。但同样,如果我使用最新版本,那么我的一些用户可能会错过这个功能。这里我可以checkgoogle play services 版本并提示用户更新(不确定是否所有用户都会更新)。

2) 最低版本(在 Google 登录的情况下为 8.4) - 现在,由于这是所需的最低版本,更多的用户将在他们的设备上安装此版本。

那么,在使用任何 Google Play 服务 api?

附:我了解 Google Play 服务每隔几天就会更新一次,并且大多数用户都会获得更新的服务。但我担心的是那些网络连接速度较慢的用户。因为我只需使用较低版本的 Google Play 服务就可以实现相同的功能。

【问题讨论】:

    标签: android google-play-services


    【解决方案1】:

    我认为使用最新版本总是好的,但如果您有任何其他问题,可以使用旧版 Google Play 服务。

    据我所知,Google 登录 com.google.android.gms:play-services-auth:8.4.0

    您也可以在 google-services:2.1.2 的帮助下使用 play-services-auth:8.3.0,

       classpath 'com.google.gms:google-services:2.1.2'
    
       compile 'com.google.android.gms:play-services-auth:8.3.0' 
    

    但请记住,您需要使用与 google-services:2.1.2 兼容的所有其他播放服务,并且所有依赖项都应具有相同的版本 (8.3.0)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-12-29
      • 2014-05-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多