安卓:NoClassDefFoundError的android.os.AsyncTaskandroid、NoClassDefFoundError、AsyncTask、os

2023-09-03 21:29:40 作者:横尸遍野

由于几个星期,我看到我的应用程序越来越多的崩溃,并显示以下异常

Since a couple of weeks, I'm seeing more and more crashes of my app with the following exception

致命异常:java.lang.NoClassDefFoundError的 android.os.AsyncTask

Fatal Exception: java.lang.NoClassDefFoundError android.os.AsyncTask

这code已经运行了一个月,没有任何问题,现在看来对某些设备(75%的Andr​​oid 2.3.x和25%的Andr​​oid 4.0.3)失败 当我创建延伸的AsyncTask一类的新实例,它会失败。

This code has run for month without any issue, and it seems now to fail on some devices (75% android 2.3.x and 25% android 4.0.3) It fails when I create a new instance of a class which extends AsyncTask.

我从UI线程创建这个类。

I create this class from the UI thread.

怎么会是类中没有发现,因为它是在SDK中定义的?

How can that class be not found as it's defined within the SDK ?

推荐答案

它看起来像另一个谷歌播放服务的错误...

It looks like yet another Google Play Services bug...

https://groups.google.com/论坛/#!话题/谷歌AdMob的,广告-SDK / _x12qmjWI7M

编辑:由谷歌员工=> 证实https://groups.google.com/d/msg/google-admob-ads-sdk/_x12qmjWI7M/9ZQs-v0ZZTMJ

confirmed by Google staff => https://groups.google.com/d/msg/google-admob-ads-sdk/_x12qmjWI7M/9ZQs-v0ZZTMJ