Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/196.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
Java Google PlayService需要更新,但PlayStore中没有更新_Java_Android_Google Maps_Google Play Services - Fatal编程技术网

Java Google PlayService需要更新,但PlayStore中没有更新

Java Google PlayService需要更新,但PlayStore中没有更新,java,android,google-maps,google-play-services,Java,Android,Google Maps,Google Play Services,我开发了一个使用谷歌地图的应用程序。我刚刚在Eclipse中更新了Android插件(使用Android L libs),并重新导入了GooglePlayService libs等 所以,我重新编译了它,它在我的手机(4.4.2版本的Sony Xperia Z)、GenyMotion Emulator(4.4.2)和Nexus 7(4.4.2)上运行得非常好。但它在两款三星Galaxy S4(4.4.2)和另一款三星平板电脑(4.4.2)上都不起作用。事实上,我是这样检查Google Play服

我开发了一个使用谷歌地图的应用程序。我刚刚在Eclipse中更新了Android插件(使用Android L libs),并重新导入了GooglePlayService libs等

所以,我重新编译了它,它在我的手机(4.4.2版本的Sony Xperia Z)、GenyMotion Emulator(4.4.2)和Nexus 7(4.4.2)上运行得非常好。但它在两款三星Galaxy S4(4.4.2)和另一款三星平板电脑(4.4.2)上都不起作用。事实上,我是这样检查Google Play服务的版本的:

resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this.getActivity());
        // resultCode = ConnectionResult.SERVICE_VERSION_UPDATE_REQUIRED;
        if (resultCode != ConnectionResult.SUCCESS) {
            if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {
                GooglePlayServicesUtil.getErrorDialog(resultCode, this.getActivity(), 1).show();
                rootView = inflater.inflate(R.layout.fragment_googleplayerror, container, false);
                return rootView;
            } else {
                Log.i(Tag, "This device is not supported.");
                getActivity().finish();
            }
        }

        else {
            rootView = inflater.inflate(R.layout.activity_tracking, container, false);
        }

因此,在应用程序无法运行的设备中,Android检测到GPS(GooglePlayService)不是最新的,并重定向到GooglePlayStore,但在PlayStore中只有两个按钮:卸载和打开。我还读到import
GooglePlayServiceForFroyo
可以解决pb问题。但是,为什么它能在某些设备上工作,而在其他设备上却不能工作,即使它们在同一个Android版本上?

你能试试看问题是否已经解决了吗?Google Play Services 5.0的推出刚刚结束(1小时前),如本文所述:


可能是您在首次推出之前使用了5.0 SDK,但由于您的设备尚未收到更新,因此无法运行。

您可以在应用程序之外更新GPS吗?(即只访问Play Store而不启动代码)。尝试在移动设备中启用Gps服务……我无法从Play Store更新Gps:只有两个按钮:“打开”或“Unistall”它在Nexus 4Hello Wayne上也能工作,我遇到了与Cocorico描述的相同的问题。我们在Galaxy S4 4.4.2(阿根廷)中获得了“更新”代码,但当我们单击Play Services对话框检查Play Store中的更新时,没有可下载的更新。我们在build.gradle中使用Play Services 5+,如Play Services文档中所述。您在build.gradle中使用的是5+还是5.0+?我建议使用5.0.+,因为它已经推出,应该可以正常工作。我使用5.0+作为“设置Google Play服务”文档的建议,但我们的大多数设备在Google Play上看不到任何更新。我真的很担心这一点,因为我们的下一个版本将首次包括Google Play服务,我不想给用户带来困难。我在Mercadolibre android应用程序工作,您好。我纠正自己。我们使用的是文档推荐的5.+:编译'com.google.android.gms:play services:5.+'我会试试5.0+,谢谢您的时间。