GoogleClientApiConnected异常来自何处? [英] Where does a GoogleClientApiConnected exception come from?

查看:184
本文介绍了GoogleClientApiConnected异常来自何处?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于一个项目,我正在创建一个包含WebViewservice且可以从背景切换到前景的serviceLocationManager首先依赖NETWORK_PROVIDER以及随后依赖GPS_PROVIDER的android应用. 在非常随机的情况下,启动应用程序后,我在logcat输出中发现了此异常:

For a project, I am creating an android app that includes a WebView, a service that can switch from background to foreground and the LocationManager relying on the NETWORK_PROVIDER first and the GPS_PROVIDER later. In very random cases, upon starting the app, I find this exception in my logcat-output:

E/GoogleApiClientConnecting: GoogleApiClient connecting is in step STEP_SERVICE_BINDINGS_AND_SIGN_IN but received callback for step STEP_GETTING_REMOTE_SERVICE
    java.lang.Exception
        at qw.b(PG:25)
        at qw.c(PG:36)
        at Iw.c(PG:3)
        at Gx.c(PG:2)
        at ly.d(PG:15)
        at gy.a(PG:19)
        at iy.c(PG:6)
        at hy.handleMessage(PG:46)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at oG.dispatchMessage(PG:1)
        at android.os.Looper.loop(Looper.java:214)
        at android.os.HandlerThread.run(HandlerThread.java:65)

我检查了我的代码和依存关系,但似乎没有与GoogleApiClient相关的信息(我发现它已经过时了).我没有(有意识地)不使用Google Play商店集成或类似的东西.

I checked my code and my dependencies and I don't seem to have anything related to a GoogleApiClient (which I found was outdated anyways). I don't (consciously) use Google Play Store integration or such things.

此异常似乎会极大地减慢我的WebView的速度(每个XHR或fetch几乎停滞了3秒).我不知道这可能如何关联.

This exception seems to have the effect of slowing down my WebView very much (every single XHR or fetch is stalled for almost exactly 3seconds). How this could possibly be related, I don't know.

此外,它仅在启动或重新启动应用程序时偶尔发生(有时在清除所有数据之后).

Plus, it only happens occasionally when starting or restarting the app (sometimes after clearing all data).

任何帮助将不胜感激,这使我烦恼了.

Any help would be appreciated, this is bugging me out.

推荐答案

我发现的唯一解决方法是完全禁用设备上的"Google Play保护"(设置-> Google->安全-> Google Play保护->齿轮在顶部->常规->使用Play Protect扫描应用程序.

The only workaround I found was to completely disable "Google Play Protect" on the device (Settings -> Google -> Security -> Google Play Protect -> Cogwheel at the top -> General -> Scan apps with Play Protect).

是非常具有侵略性的,并且具有潜在的危险. (不过,对我的评估就足够了.)

It is very invasive and potentially dangerous. (It's enough for my evaluation, though.)

这篇关于GoogleClientApiConnected异常来自何处?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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