简体   繁体   English

Flurry Agent在Android 2.3.4上导致CalledFromWrongThreadException异常

[英]Flurry Agent causing a CalledFromWrongThreadException exception on Android 2.3.4

When I use the FlurryAgent on a 2.3.4 device I get the following exception: 当我在2.3.4设备上使用FlurryAgent时,我得到以下异常:

E/AndroidRuntime: FATAL EXCEPTION: FlurryAgent
        android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.

In my code I made sure everything that is UI related is done on the UI thread. 在我的代码中,我确保UI相关的所有内容都在UI线程上完成。 I've tried disabling Flurry's exception capture via FlurryAgent.setCaptureUncaughtExceptions(false) but that did not help. 我已经尝试通过FlurryAgent.setCaptureUncaughtExceptions(false)禁用Flurry的异常捕获,但这没有帮助。

I find it hard to understand if Flurry is causing this exception or just reporting it, I tend to believe the former as when I comment out all Flurry calls, there is no exception/crash whatsoever. 我发现很难理解如果Flurry引起这个异常或只报告它,我倾向于相信前者,因为当我评论所有Flurry调用时,没有任何异常/崩溃。

I use the latest Flurry SDK - 3.2.1 我使用最新的Flurry SDK - 3.2.1

Any ideas? 有任何想法吗?

There is an issue with AsyncTask in the Android SDK previous to Jelly Bean that can cause this problem under certain conditions. 在Jelly Bean之前的Android SDK中存在AsyncTask的问题,在某些情况下会导致此问题。 Please, take a look at Flurry's support page , there is a workaround. 请看看Flurry的支持页面 ,有一个解决方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM