我正在尝试使用 BaseGameUtils 将游戏集成到我的应用程序中。一切看起来都很好,但是当我运行该应用程序时,我收到消息“在您更新 Google Play 服务之前,此应用程序不会运行”,当我单击“更新”按钮时,Play 商店会在 Google Play 服务页面中打开,但我只能“打开”或“卸载”,因为它已更新。我尝试重新安装但不起作用。
编辑:我从 Logcat 收到此消息“GooglePlayServicesUtil:Google Play 服务已过时。需要 5208000 但找到 5089010”,但我正在使用编译 'com.google.android.gms:play-services:5.2.08'
最佳答案
我已经解决了需要 5.0.+ 版 Google Play 服务的问题。为此,我更改了我的应用程序模块和 BaseGameUtils 模块中的文件 build.gradle,来自:
compile 'com.google.android.gms:play-services:+'
到
compile 'com.google.android.gms:play-services:5.0.+'
这些问题都提到了同一个问题:
Google Play Services version 5.2.08 too recent for my device
After update - crash com.google.android.gms:play-services:5.2.8
关于android - "This app won' t 运行直到您更新 Google Play 服务“GameBaseUtils,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25587189/