gpt4 book ai didi

android - 为旧应用更新 Google Play 服务

转载 作者:行者123 更新时间:2023-11-30 01:30:06 25 4
gpt4 key购买 nike

我有一个使用 Google Play 服务 5.08 的旧应用程序。由于该应用程序使用 kiosk 模式,我们从未更新设备上的 google play 服务。现在我必须将 google play 服务更新到 8.4。我还希望现有用户可以使用该应用程序而不会崩溃。那么如何在应用程序中同时支持 5.08 和 8.4 API 呢?当我在 Gradle 文件中使用 8.4 时,我看到 Google 没有公开 5.08 的 API。

最佳答案

创建将使用最新的 google play 服务 (8.4) 的应用程序的更新版本。为当前的谷歌播放服务 (5.08) 保留旧版本的应用程序。

Google Play 服务的版本将取决于您的应用程序实现的 API。在应用程序中同时支持 google play 服务将对您的应用程序性能产生负面影响或不适用。 Google Play 服务的每次更新都会添加新的 API 连接并改进旧的 API。考虑您的应用程序将实现的 API,然后决定您的用户应该更新哪个版本的 google play 服务以使应用程序平稳运行。

The Google Play services client library

The client library contains the interfaces to the individual Google services and allows you to obtain authorization from users to gain access to these services with their credentials. It also contains APIs that allow you to resolve any issues at runtime, such as a missing, disabled, or out-of-date Google Play services APK. The client library has a light footprint if you use ProGuard as part of your build process, so it won't have an adverse impact on your app's file size.

If you want to access added features or products, you can upgrade to a new version of the client library as they are released. However, upgrading is not necessary if you don't care about new features or bug fixes. We anticipate more Google services to be continuously added, so be on the lookout for these updates.

关于android - 为旧应用更新 Google Play 服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35865166/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com