问题描述
由于几个星期,我看到我的应用程序越来越多的崩溃,并显示以下异常
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.NoClassDefFoundErrorandroid.os.AsyncTask
这code已经运行了一个月,没有任何问题,现在看来对某些设备(75%的Android 2.3.x和25%的Android 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
这篇关于安卓:NoClassDefFoundError的android.os.AsyncTask的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!