Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/193.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 在手机上没有play services应用程序的情况下,谷歌排行榜是否可以正常工作?_Android_Google Play Services_Andengine - Fatal编程技术网

Android 在手机上没有play services应用程序的情况下,谷歌排行榜是否可以正常工作?

Android 在手机上没有play services应用程序的情况下,谷歌排行榜是否可以正常工作?,android,google-play-services,andengine,Android,Google Play Services,Andengine,我有一个andengine游戏项目,我正在使用谷歌排行榜。以前我使用的是Eclipse和旧版本的Google play服务。现在我已经迁移到Android studio并使用最新版本的play services。但每当我在不同的设备上运行应用程序时,我都会得到这些结果 案例1)如果设备没有游戏播放服务应用程序 除非您安装了播放服务,否则应用程序不会运行(获取 播放服务选项) 案例2)如果设备具有较旧版本的播放服务 除非您更新播放服务(更新),否则应用程序不会运行 播放服务选项) 因此,我的应用程

我有一个andengine游戏项目,我正在使用谷歌排行榜。以前我使用的是Eclipse和旧版本的Google play服务。现在我已经迁移到Android studio并使用最新版本的play services。但每当我在不同的设备上运行应用程序时,我都会得到这些结果

案例1)如果设备没有游戏播放服务应用程序

除非您安装了播放服务,否则应用程序不会运行(获取 播放服务选项)

案例2)如果设备具有较旧版本的播放服务

除非您更新播放服务(更新),否则应用程序不会运行 播放服务选项)

因此,我的应用程序完全依赖于play sevices应用程序,这是我绝对不喜欢的,我的许多用户都讨厌它。有没有一种方法可以在不附加这些字符串的情况下基本整合谷歌排行榜


谢谢。

否。Google Play Services允许您的应用程序连接到给定的Google API(包括排行榜)。官方称,Android上除了通过Google Play服务之外没有其他访问权限。

不,这是不可能的。没有play services,您无法使用play services提供的服务。谁说您需要用户登录?您可以将其设置为可选。您指的是play services应用程序,而不仅仅是sdk,对吗?play services sdk包含通过play services应用程序将您的应用程序连接到Google API的代码/库。好的,但在旧版本的sdk中是可能的。那么现在是否可以在studio中使用较旧的sdk?您可以在gradle file
compile
dependency中指定确切的版本。因此,如果您知道哪一个适合您,您应该能够根据该版本进行构建