【问题标题】:App using Google Play Game Services Crashing right away使用 Google Play 游戏服务的应用程序立即崩溃
【发布时间】:2014-07-06 03:20:57
【问题描述】:

我将计算机双启动到 Linux,并将我的所有项目文件复制到 Linux 中的 Eclipse,但出现这些错误。

>07-04 23:23:17.980: W/PopupManager(6781): You have not specified a View to use as content >view for popups. Falling back to the Activity content view which may not work properly in >future versions of the API. Use setViewForPopups() to set your content view.
>07-04 23:23:17.990: W/art(6781): Failed to find ELF magic in >/system/framework/com.android.media.remotedisplay.odex: dey
>07-04 23:23:18.000: W/art(6781): Failed to find ELF magic in >/system/framework/com.android.location.provider.odex: dey
>07-04 23:23:18.000: W/art(6781): Failed to find ELF magic in >/system/framework/com.google.android.ble.odex: dey
>07-04 23:23:18.100: W/ResourceType(6781): Failure getting entry for 0x7f06000d (t=5 e=13) >in package 0 (error -75)
>07-04 23:23:18.100: E/GooglePlayServicesUtil(6781): The Google Play services resources were >not found. Check your project configuration to ensure that the resources are included.
>07-04 23:23:18.150: I/Adreno-EGL(6781): <qeglDrvAPI_eglInitialize:320>: EGL 1.4 QUALCOMM >Build: I0404c4692afb8623f95c43aeb6d5e13ed4b30ddbDate: 11/06/13
>07-04 23:23:18.170: D/OpenGLRenderer(6781): Enabling debug mode 0
>07-04 23:23:18.570: D/AndroidRuntime(6781): Shutting down VM
>07-04 23:23:18.570: E/AndroidRuntime(6781): FATAL EXCEPTION: main
v07-04 23:23:18.570: E/AndroidRuntime(6781): Process: com.cs407project.cardgameswithfriends, >PID: 6781
>07-04 23:23:18.570: E/AndroidRuntime(6781): java.lang.IllegalStateException: A fatal >developer error has occurred. Check the logs for further information.
>07-04 23:23:18.570: E/AndroidRuntime(6781):    at >com.google.android.gms.internal.eh$h.b(Unknown Source)
>07-04 23:23:18.570: E/AndroidRuntime(6781):    at >com.google.android.gms.internal.eh$h.a(Unknown Source)
>07-04 23:23:18.570: E/AndroidRuntime(6781):    at >com.google.android.gms.internal.eh$b.ec(Unknown Source)
>07-04 23:23:18.570: E/AndroidRuntime(6781):    at >com.google.android.gms.internal.eh$a.handleMessage(Unknown Source)
>07-04 23:23:18.570: E/AndroidRuntime(6781):    at >android.os.Handler.dispatchMessage(Handler.java:102)
>07-04 23:23:18.570: E/AndroidRuntime(6781):    at android.os.Looper.loop(Looper.java:136)
>07-04 23:23:18.570: E/AndroidRuntime(6781):    at >android.app.ActivityThread.main(ActivityThread.java:5001)
>07-04 23:23:18.570: E/AndroidRuntime(6781):    at java.lang.reflect.Method.invoke(Native >Method)
>07-04 23:23:18.570: E/AndroidRuntime(6781):    at >com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
>07-04 23:23:18.570: E/AndroidRuntime(6781):    at >com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
>07-04 23:27:40.990: I/Process(6781): Sending signal. PID: 6781 SIG: 9

这个错误发生在 onCreate() 被调用之前。我将 BaseGameUtils 和 google-play-service_lib 作为库导入,它们都在我的主程序的构建路径中。 google-play-services_lib 是从 SDK 复制的,因此不会从那里引用。

如果有人可以就如何/在 logcat 中阅读什么内容提供一般性建议,我将不胜感激。我总是觉得我在阅读顶部或底部的随机位并尝试直到它起作用为止。

【问题讨论】:

    标签: android-logcat google-play-games


    【解决方案1】:

    此错误可能是由于未在 AndroidManifest 中设置 com.google.android.gms.games.APP_ID 造成的。请参阅this 的第 3 步。

    尝试将其添加到 AndroidManifest.xml 中的应用程序元素中:

    <meta-data android:name="com.google.android.gms.games.APP_ID"
       android:value="@string/app_id" />
    <meta-data android:name="com.google.android.gms.version"
       android:value="@integer/google_play_services_version"/>
    

    @string/app_id 指的是您的应用在 Google Play 开发者控制台中的游戏服务 ID。 This成就实现教程带你完成整个过程。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-22
      • 2013-05-30
      相关资源
      最近更新 更多