"This app won't run unless you update Google Play Services" 在真实设备上安装应用程序时
"This app won't run unless you update Google Play Services" when app is installed on real device
当我在 Android 设备 运行 旧版本(例如 4.4.4)上安装我的应用程序时,我收到此消息。我能看到的与此消息相关的所有其他帖子似乎都是当 运行 在模拟器上并且与 Google 地图 API 相关时。我正在使用 Google Play Service 7.0.0.
"This app won't run unless you update Google Play Services" when app is installed on real device
您在 phone 上收到此消息是因为您设备的 google 播放服务版本低于应用程序中使用的版本。
正在更新它,将正常工作
This android developer's blog entry 描述了 Google Play 服务 7.0 版的新功能。
如果您不需要这些,您可以使用 6.5 版,它已经使用了新的 GoogleApiClient
class 并提供了精细的依赖模块(最好描述 here and here。
在我的一个项目中我使用了这个
compile 'com.google.android.gms:play-services:6.5.87'
这是整个包,我只会在部署前挑选我需要的模块。针对目标 API 22.
工作正常
我选择的最远版本是
compile 'com.google.android.gms:play-services:6.1.71'
本文介绍了今天使用的统一 GoogleApiClient
方法。
So should I use an older SDK?
绝对不是,这不是SDK相关的问题。将所有内容(构建工具、编译 SDK、目标 SDK)保持为 22。
is there a better way to handle this than asking my users to update their Google Play Services?
参见上文,在您的项目中使用旧版本的库。
当我在 Android 设备 运行 旧版本(例如 4.4.4)上安装我的应用程序时,我收到此消息。我能看到的与此消息相关的所有其他帖子似乎都是当 运行 在模拟器上并且与 Google 地图 API 相关时。我正在使用 Google Play Service 7.0.0.
"This app won't run unless you update Google Play Services" when app is installed on real device
您在 phone 上收到此消息是因为您设备的 google 播放服务版本低于应用程序中使用的版本。
正在更新它,将正常工作
This android developer's blog entry 描述了 Google Play 服务 7.0 版的新功能。
如果您不需要这些,您可以使用 6.5 版,它已经使用了新的 GoogleApiClient
class 并提供了精细的依赖模块(最好描述 here and here。
在我的一个项目中我使用了这个
compile 'com.google.android.gms:play-services:6.5.87'
这是整个包,我只会在部署前挑选我需要的模块。针对目标 API 22.
工作正常我选择的最远版本是
compile 'com.google.android.gms:play-services:6.1.71'
本文介绍了今天使用的统一 GoogleApiClient
方法。
So should I use an older SDK?
绝对不是,这不是SDK相关的问题。将所有内容(构建工具、编译 SDK、目标 SDK)保持为 22。
is there a better way to handle this than asking my users to update their Google Play Services?
参见上文,在您的项目中使用旧版本的库。