NoClassDefFoundError on HTC Sense

纵然是瞬间 提交于 2019-12-13 04:25:26

问题


When debugging my app on HTC Sense, I have got (I believe it is) an exception for the following NoClassDefFoundError on android.os.NetworkOnMainThreadException

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);

回答1:


If your HTC sense is running android API Version < 11 (HONEYCOMB), android.os.NetworkOnMainThreadException is not yet available.



来源:https://stackoverflow.com/questions/12962645/noclassdeffounderror-on-htc-sense

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!