您的位置:首页 > 编程语言 > Go语言

Google Play 服务提示更新、Google play 闪退等问题

2015-07-26 21:01 816 查看
发现很多人说Google Play 服务提示更新和闪退等问题。

其实出现这些问题的根本原因是因为:你的Google Play 服务安装的版本不对。

其实,根据Google给出的升级notes:

Uploader's notes:

To figure out the right version of Google Play services for your Android device, go to Settings -> Apps -> Google Play services, and look at the last 3 numbers
in the parentheses. You'll see something like -XYZ where:
* X defines Android version:

0 for Android <5.0
4 and 7 for Android >=5.0
8 for Android TV

* Y defines CPU architecture:

1 for armeabi
3 for armeabi-v7a
4 for arm64-v8a
7 for x86

* Z defines DPI:

0 for universal
2 for 160
4 for 240
6 for 320
8 for 480

Notes:

It seems that -7YZ builds became -4YZ with Google Play services 6.5. If you were on -7YZ before, you should now install -4YZ.
Looks like -8YZ builds are for Android TV.

Examples:

-014 for Android <5.0 armeabi CPU 240 DPI device
-438 for Android 5.0+ armeabi-v7a CPU 480 DPI device
-876 for Android TV x86 CPU 320 DPI device

比如我有一台小米2的设备,刷的开发版。

那么我该如何找出对应notes中的XYZ值呢?

如下:

(1)X值:通过查看设置->关于手机
, 可知,Android版本为5.0.2 , 所以X值为4. 在Google Play services 6.5以后,7的均都要升级到4上

(2)Y值:做过手机开发的人基本都知道adb工具。手机连接电脑,连上adb。

通过命令:$ adb
shell $ cat /proc/cpuinfo

即可查出手机的CPU架构,我的手机显示的信息为

Processor : ARMv7 Processor rev 3 (v7l)

可以得知该Y值为3

(3)Z值:如何查看DPI?同样,用adb命令:$adb shell dumpsys window displays 可以查出手机的DPI。

我手机DPI为320.所以Z值为6.

综上:XYZ : 436

截至2015年7月26日,用Google搜索“Google play service 436 ”匹配到的版本你去找最新版的下载安装上就行了。

下面这个链接是我找到的匹配到自己版本的下载地址:
http://www.apkmirror.com/apk/google-inc/google-play-services/google-play-services-7-3-29-1866531-436-android-apk-download/
如果玩游戏的话,当然你还得装上Google play游戏 等一系列的配套软件。

我之所以会琢磨这些是因为,我一直在玩“部落冲突”,当把安卓机器的游戏进度同步到苹果设备时,需要连接Google服务,同步到Google服务器上去以后再同步到苹果设备,也是被它烦了一天,希望写出来和大家分享。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: