gpt4 book ai didi

java - GooglePlayService 需要更新但 PlayStore 没有更新

转载 作者:行者123 更新时间:2023-11-30 02:49:03 26 4
gpt4 key购买 nike

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

因此,我重新编译,它在我的手机(4.4.2 中的 Sony Xperia Z)、GenyMotion 模拟器 (4.4.2) 和 Nexus 7 (4.4.2) 上运行良好。但它不适用于 4.4.2 中的两台三星 Galaxy S4 (4.4.2) 和另一台三星平板电脑。其实我是这样查看GooglePlay服务的版本的:

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,但在 Play Store 中只有两个按钮:卸载和打开。我还读到 import GooglePlayServiceForFroyo 可以解析 pb。但是,为什么它可以在某些设备上运行而在其他设备上运行,即使它们使用的是相同的 Android 版本?

最佳答案

您能否尝试查看问题是否自行解决? Google Play Services 5.0 的推出刚刚完成(1 小时前),如博文中所述:http://android-developers.blogspot.com/2014/07/google-play-services-5.html

可能是您在上线完成前使用了5.0 SDK,但由于您的设备未收到更新,因此无法运行。

关于java - GooglePlayService 需要更新但 PlayStore 没有更新,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24526722/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com