gpt4 book ai didi

android - com.google.android.apps.gcs 导致应用程序在模拟器中启动时崩溃

转载 作者:太空狗 更新时间:2023-10-29 14:38:07 31 4
gpt4 key购买 nike

我在 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 ,但禁用麦克风权限和 Google 搜索应用并没有解决我的问题。

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

最佳答案

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

从日志类别中,我发现了这条错误消息“无法检索包 com.google.android.apps.gcs” 的服务器 token ,我认为这可能是我无法检索的最可能原因完成它。

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

然后就可以了。

希望对您有所帮助。

关于android - com.google.android.apps.gcs 导致应用程序在模拟器中启动时崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52698210/

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