谷歌Play业务已经过时了。需要7571000但发现6774470 [英] Google Play services out of date. Requires 7571000 but found 6774470

查看:475
本文介绍了谷歌Play业务已经过时了。需要7571000但发现6774470的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试着添加谷歌播放API来我的Andr​​oid游戏,我跟在他们网站上的说明。

Im trying to add google play API to my android game and i followed the instructions in their site.

我在模拟器中运行这个错误,试图解决它。 (我的手机上的应用程序只是崩溃)

I got this error in the emulator run, trying to solve it. (on my phone the app just crash)

在清单:

<meta-data
        android:name="com.google.android.gms.version"
        android:value="@integer/google_play_services_version" />

在Version.xml

In the Version.xml

<integer name="google_play_services_version">7571000</integer>

和我安装了所有必需的包。

and i got all the necessary packages installed.

什么问题可能?

注释: 它的安装

推荐答案

添加在 dependencies.gradle 下面的脚本,它会自动下载最新的游戏服务lib和你可以找到他们的本地路径,如: m2repository / COM /谷歌/安卓/ GMS /播放服务

Add the below script in dependencies.gradle, it will download the latest play service lib automatically, and you can find them on local path such as: m2repository/com/google/android/gms/play-services.

dependencies {
  compile 'com.google.android.gms:play-services:4.2.+'
}

这篇关于谷歌Play业务已经过时了。需要7571000但发现6774470的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆