对NoClassDefFoundError的HTC Sense的
问题描述:
在调试我的HTC Sense的应用程序,我有(我相信这是)下列异常
NoClassDefFoundError的上android.os.NetworkOnMainThreadException
When debugging my app on HTC Sense, I have got (i believe it is) an exception for the following NoClassDefFoundError on android.os.NetworkOnMainThreadException
这件作品code,它似乎打破调用此行code时是
The piece of code, where it seems to break is when calling this line of code
@SuppressWarnings("unchecked")
ArrayResponse<Grid> response = (ArrayResponse<Grid>) HttpHandler.getHttpHandler().processGet(url, ArrayResponse.class, listType);
任何人都曾经遇到过这样的事情。
Anyone has ever encountered something like this.
大卫。
答
如果您的HTC Sense运行的是Android API版本&LT; 11(蜂窝), android.os.NetworkOnMainThreadException 是尚未公布。
If your HTC sense is running android API Version < 11 (HONEYCOMB), android.os.NetworkOnMainThreadException is not yet available.