【问题标题】:com.google.android.apps.gcs causes app to crash on launch in Emulatorcom.google.android.apps.gcs 导致应用程序在模拟器中启动时崩溃
【发布时间】:2019-03-12 21:14:39
【问题描述】:

我在 Android Studio 中有一个 Android 9 模拟器,我正在尝试在其上运行我的应用程序。

但是应用程序在启动时崩溃,并不断记录这个冗长的错误:

2018-10-08 11:48:28.693 18207-18309/? E/aise: Phenotype API error. Event a <
      a: ""
      b: 0
      d: 1
      e: "com.google.android.apps.gcs"
      f: 0
      g: 0
      h: 0
      i: ""
      j: ""
    >
    d: 219
    g: # bpkh@f5738319
    , EventCode: 12
    [CONTEXT service_id=51 ]
    aira: 29503
        at aisl.a(:com.google.android.gms@13280040@13.2.80 (100700-211705629):36)
        at aisk.b(:com.google.android.gms@13280040@13.2.80 (100700-211705629):5)
        at aise.a(:com.google.android.gms@13280040@13.2.80 (100700-211705629):85)
        at aise.a(:com.google.android.gms@13280040@13.2.80 (100700-211705629):77)
        at wsj.run(:com.google.android.gms@13280040@13.2.80 (100700-211705629):29)
        at bdmu.run(:com.google.android.gms@13280040@13.2.80 (100700-211705629):2)
        at pyx.run(:com.google.android.gms@13280040@13.2.80 (100700-211705629):21)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at qet.run(Unknown Source:7)
        at java.lang.Thread.run(Thread.java:764)
2018-10-08 11:48:28.693 18207-18309/? E/AsyncOperation: serviceID=51, operation=GetCommittedConfigurationOperationCall
    OperationException[Status{statusCode=unknown status code: 29503, resolution=null}]
        at aise.a(:com.google.android.gms@13280040@13.2.80 (100700-211705629):95)
        at aise.a(:com.google.android.gms@13280040@13.2.80 (100700-211705629):77)
        at wsj.run(:com.google.android.gms@13280040@13.2.80 (100700-211705629):29)
        at bdmu.run(:com.google.android.gms@13280040@13.2.80 (100700-211705629):2)
        at pyx.run(:com.google.android.gms@13280040@13.2.80 (100700-211705629):21)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at qet.run(Unknown Source:7)
        at java.lang.Thread.run(Thread.java:764)
2018-10-08 11:48:28.694 18207-18250/? E/NetRec: [530] afrj.a: Could not retrieve server token for package com.google.android.apps.gcs
    java.util.concurrent.ExecutionException: otp: 29503: 
        at aptv.b(:com.google.android.gms@13280040@13.2.80 (100700-211705629):2)
        at aptv.a(:com.google.android.gms@13280040@13.2.80 (100700-211705629):28)
        at afrj.a(:com.google.android.gms@13280040@13.2.80 (100700-211705629):1)
        at afrj.a(:com.google.android.gms@13280040@13.2.80 (100700-211705629):4)
        at afrg.getHeaders(:com.google.android.gms@13280040@13.2.80 (100700-211705629):2)
        at com.android.volley.toolbox.HttpClientStack.performRequest(:com.google.android.gms@13280040@13.2.80 (100700-211705629):6)
        at psm.performRequest(:com.google.android.gms@13280040@13.2.80 (100700-211705629):1)
        at bmj.executeRequest(:com.google.android.gms@13280040@13.2.80 (100700-211705629):1)
        at com.android.volley.toolbox.BasicNetwork.performRequest(:com.google.android.gms@13280040@13.2.80 (100700-211705629):5)
        at psn.performRequest(:com.google.android.gms@13280040@13.2.80 (100700-211705629):14)
        at com.android.volley.NetworkDispatcher.a(:com.google.android.gms@13280040@13.2.80 (100700-211705629):6)
        at com.android.volley.NetworkDispatcher.run(:com.google.android.gms@13280040@13.2.80 (100700-211705629):2)
     Caused by: otp: 29503: 
        at ozf.a(:com.google.android.gms@13280040@13.2.80 (100700-211705629):4)
        at aipu.a(:com.google.android.gms@13280040@13.2.80 (100700-211705629):5)
        at aisk.a(Unknown Source:3)
        at wsg.a(:com.google.android.gms@13280040@13.2.80 (100700-211705629):5)
        at wsj.run(:com.google.android.gms@13280040@13.2.80 (100700-211705629):37)
        at bdmu.run(:com.google.android.gms@13280040@13.2.80 (100700-211705629):2)
        at pyx.run(:com.google.android.gms@13280040@13.2.80 (100700-211705629):21)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at qet.run(Unknown Source:7)
        at java.lang.Thread.run(Thread.java:764)

我见过thisthis,但禁用麦克风权限和谷歌搜索应用并没有解决我的问题。

我应该怎么做才能修复这个错误?

【问题讨论】:

  • 你能找到解决问题的办法吗?
  • 不,因为我记得我必须重新安装东西。

标签: android


【解决方案1】:

我在开发带有定位部分的地图应用程序时遇到了这个问题。 我可以在屏幕顶部看到 GPS 图标似乎工作正常,但是它无法将“相机”移动到我的真实位置。

从日志类别中,我发现此错误消息“无法检索包 com.google.android.apps.gcs' 的服务器令牌,我认为这可能是我无法通过它的最可能原因。

在尝试将compileSdkVersion 降级到较低级别之前,我已尝试对项目配置进行一些小的更改。对于这个项目,我将其从 28 更改为 27。 (我的手机是安卓9的。)

然后就可以了。

希望这对你有帮助。

【讨论】:

  • 自从 Google 在 11 月强制迁移到 API 29 后,此解决方案不再有效。我们还能做些什么呢?
猜你喜欢
  • 2014-05-27
  • 1970-01-01
  • 2011-10-11
  • 2022-01-06
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-04-19
相关资源
最近更新 更多