Getting NoClassDefFoundError: android.os.AsyncTask
This problem has been bothering me for a bit and I cannot find a satisfactory solution. Many times (not always) in the creation of a specific object on the Android emulator I get NoClassDefFoundError: android.os.AsynchTask. I have tried many approaches removing and re-adding external libraries multiple times, wiping the emulator, restarting IntelliJ (worked once but then got the same error.) At this point all I am trying to do is construct the most barebones AsyncTask and I still get the error. Here is the whole error message:
The emulator runs 2.2, my minSDK is 8. Here is the offending code:
And the StatisticsProvider object is:
|
||
6
|
OK, looks like it is a problem with one of the versions of Google play Services. Seehttps://code.google.com/p/android/issues/detail?id=81083 Looks like a work around might be to add:
into your
If you don‘t already have a Application class then create a class that extends from
|
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。
NoClassFoundDefError
is for AsyncTask and not StatisticsProvider ? – David T. Aug 31 ‘13 at 0:47