3
我遵循開發人員指南中編寫谷歌地圖的步驟。我的API密鑰很好。我還安裝了apks,以便我可以將地圖應用程序運行到模擬器。「不幸的是,Google Play服務已停止」,但地圖工作正常
當我運行我的android模擬器時,彈出一個錯誤「不幸Google Play服務已停止」。但事情是地圖工作正常後,你只需點擊確定。
我剛剛複製了初學者指南中提供的所有代碼,因此無需在此處複製我的代碼。任何人都知道問題?感謝
我遵循開發人員指南中編寫谷歌地圖的步驟。我的API密鑰很好。我還安裝了apks,以便我可以將地圖應用程序運行到模擬器。「不幸的是,Google Play服務已停止」,但地圖工作正常
當我運行我的android模擬器時,彈出一個錯誤「不幸Google Play服務已停止」。但事情是地圖工作正常後,你只需點擊確定。
我剛剛複製了初學者指南中提供的所有代碼,因此無需在此處複製我的代碼。任何人都知道問題?感謝
UPDATE 我想我已經找到了一個可能的解決方案:而不是使用谷歌從我的根設備播放服務的apk,我用包含在這個環節中的APK:Google Play Services 4.1,我還沒有看到那些崩潰了。
老問題這裏 同樣的事情...我已經看到了這個在我的日誌:
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)
...
然而,在日誌中提到的權限被正確地列入清單。
我所做的就是從根源設備中提取Google Play服務apk,並通過adb將它安裝在我的x86模擬器中。
任何幫助?
謝謝!
你安裝了什麼?謝謝 – user3185455
你可以在我之前的評論中找到它們(在我分享的鏈接中) –
不幸的是,它沒有解決我的問題。我的模擬器是kitkat,它一直顯示錯誤,但是當我在真實設備
user3185455