
错误集锦
遥望张三
这个作者很懒,什么都没留下…
展开
-
IllegalStateException: attempt to re-open an already-closed object 错误
这是错误之前的代码 list = new ArrayList>(); int zongyusuan = 0; Cursor c = db.query("plans", null, null, null, null, null, null); System.out.println("------c--------" + c.getCount()); for (int i原创 2014-02-13 10:07:58 · 2761 阅读 · 0 评论 -
使用viewpager无法响应OnActivityResult的解决方法
之前做了一个小项目,在使用了viewpager之后,在第二个界面需要拍照后回传给Activity,当时搜索了下解决方案如下, 在跳转的时候加上这个 getParent().startActivityForResult()然后在MainAcivity也就是放置viewpager的页面重写OnActivityResult 方法,并写上SubActivity acti原创 2014-02-26 16:19:26 · 3778 阅读 · 6 评论 -
android Unhandled event loop exception 解决方案
最近是在开发基于4.0的UI,在配置UI中出现了这个问题,其实这个解决方案很简单,只要将配置xml中的这个 android:icon="@drawable/ic_launcher" 设置为自带的图就行了 具体原因还不太清楚原创 2014-03-06 21:45:19 · 1149 阅读 · 0 评论 -
android 自定义dialog中去除黑色背景 WindowManager
在服务中显示对话框,并且在退出软件后也可以出发对话框。View v = View.inflate(mContext, R.layout.to_alarm_dialog_sub, null); dialog = new Dialog(mContext, R.style.MyDialog); AlertDialog.Builder b = new AlertDialog.Build原创 2014-03-17 10:32:23 · 4803 阅读 · 0 评论 -
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:T
Your compile SDK version must match the support library’s major version.Since you are using version 23 of the support library, you need to compile against version 23 of the Android SDK.Alternatively yo原创 2016-03-31 08:22:16 · 813 阅读 · 0 评论 -
listview添加了headview时刷新的问题 HeadViewAdapter.getView
这个错误是由于你加了headview之后,系统会调用一个新的adapter来处理数据,也就是HeadViewAdapter,当你的数据源呗清空的时候,HeadViewAdapter.getView方法中获取到的position和size不对应就会出现IndexOoutOfBoundsException数组越界的问题。 解决方案,检查清空数据源的地方,要在获取完了网络数据之后清空数据。原创 2016-03-31 08:26:06 · 2534 阅读 · 0 评论 -
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)在使用Intellij IDEA开发时,打包时,mapper没有自动复制到响应位置,也会出错。在pom.xml中build节点添加以下配置:<resources> <resource> <原创 2016-08-22 14:58:33 · 818 阅读 · 0 评论