"不幸的是谷歌播放服务已经停止"但地图工作正常 [英] "Unfortunately Google Play Services has stopped" but map works fine

查看:311
本文介绍了"不幸的是谷歌播放服务已经停止"但地图工作正常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我也跟着在编程谷歌地图的开发者指南步骤。我的API密钥的罚款。我也安装的APK,这样我可以运行地图应用程序到模拟器。

I followed steps in the developers guide in programming google maps. My API keys are fine. I also installed apks so that i can run the map application to the emulator.

由于我跑我的Andr​​oid模拟器,一个错误不幸的是谷歌Play服务已停止弹出。但事情是地图上正常工作,你只需点击确定后。

As i run my android emulator, an error "Unfortunately Google Play Services has stopped" pops up. But the thing is the map works fine after you just click OK.

我刚刚从提供的所以没必要在这里复制我的code中的新手引导复制所有codeS。任何人都知道这个问题?谢谢

I just copied all the codes from the beginners guide provided so no need to copy my code here. Anyone knows the problem? thanks

推荐答案

更新
我想我已经找到了一个可能的解决方案:而不是使用谷歌从我的根设备上播放服务的apk,我用包含在这个环节中的APK:<一href=\"http://www.androidpolice.com/2014/01/09/google-play-services-4-1-begins-rollout-with-turn-based-multiplayer-new-google-drive-api-$p$pview-and-more/\"相对=nofollow>谷歌播放服务4.1 ,我还没有看到那些崩溃了。

UPDATE I think I've found a possible solution: instead of using the Google Play Services apk from my rooted device, I used the apks included in this link: Google Play Services 4.1 and I haven't seen those crashes anymore.

老问题
这里同样的事情......我已经在我的日志中看到了这一点:

OLD PROBLEM Same thing here... I've seen this in my logs:

01-27 09:49:11.164    2068-2075/com.google.android.gms E/jdwp﹕ Failed sending reply to debugger: Broken pipe
01-27 09:49:12.554    2068-2068/com.google.android.gms E/AndroidRuntime﹕ FATAL EXCEPTION: main
   java.lang.ExceptionInInitializerError
        at java.lang.Class.newInstanceImpl(Native Method)
        at java.lang.Class.newInstance(Class.java:1130)
        at android.app.ActivityThread.handleCreateService(ActivityThread.java:2558)
        at android.app.ActivityThread.access$1600(ActivityThread.java:141)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1338)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:137)
        at android.app.ActivityThread.main(ActivityThread.java:5103)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:525)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
        at dalvik.system.NativeStart.main(Native Method)
 Caused by: java.lang.SecurityException: attempting to read gservices without permission: Neither user 10042 nor current process has com.google.android.providers.gsf.permission.READ_GSERVICES.
        at android.app.ContextImpl.enforce(ContextImpl.java:1575)
        at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:1604)
        at android.content.ContextWrapper.enforceCallingOrSelfPermission(ContextWrapper.java:551)
        at ghj.c(SourceFile:107)
        at ghj.a(SourceFile:121)
        at ghj.a(SourceFile:216)
        at awe.a(SourceFile:218)
        at avz.a(SourceFile:135)
        at avx.b(SourceFile:104)
        at com.google.android.gms.init.InitializeIntentService.<clinit>(SourceFile:48)
        at java.lang.Class.newInstanceImpl(Native Method)
        ...

然而,在日志中提到,允许被包含在正确的清单。

However, that permission mentioned in the logs is included in the manifest correctly.

我所做的就是提取谷歌播放服务从根植机台,APK,并通过ADB我的x86模拟器安装。

What I did was to extract the Google Play Services apk from a rooted deviced, and installed it in my x86 emulator via adb.

任何帮助吗?

谢谢!

这篇关于&QUOT;不幸的是谷歌播放服务已经停止&QUOT;但地图工作正常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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