对NoClassDefFoundError的HTC Sense的 [英] NoClassDefFoundError on HTC Sense

查看:142
本文介绍了对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.

这篇关于对NoClassDefFoundError的HTC Sense的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆