Exception
Exception
neo_尼欧
这个作者很懒,什么都没留下…
展开
-
RecyclerView异常:java.lang.IndexOutOfBoundsException: Inconsistency detected
一. 出现原因:快速添加和删除列表数据,列表是可以滑动的,概率出现该问题java.lang.IndexOutOfBoundsException:检测到不一致。视图持有者适配器positionViewHolder无效。 java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter at androidx.recyclerview.widget.RecyclerView$Recycler.原创 2022-02-23 14:51:01 · 4540 阅读 · 1 评论 -
com.google.gson.JsonSyntaxException: java.lang.NumberFormatException: For input string: ““
记录一次简单的异常处理GSON解析出现NumberFormatException已知该问题为解析对应字段与对象属性字段类型不匹配导致解决方法一:修改服务器相应字段,使其和设定的类型一致;比如int类型的空的时候要传一个0而不是""方法二:设置registerTypeAdapter,自定义相应字段,自行转换不匹配类型遇到的问题:只设置了Integer.class,未设置int.class,导致解析仍然出错,低级错误,该打正确做法如下:com.google.gson.JsonSyntaxExcep原创 2022-02-14 10:46:32 · 2810 阅读 · 0 评论 -
The specified child already has a parent. You must call removeView() on the child‘s parent first
java.lang.IllegalStateException:The specified child already has a parent. You must call removeView() on the child’s parent first异常描述:非法状态异常,特定的 child 已经有一个 parent 了,你必须在这个 parent 中首先调用 removeView() 方法,才能继续你的内容。一个视图只能添加到一个布局中,如果重复添加,或者再添加到另外一个视图中,会报这个异常.原创 2021-09-01 11:40:51 · 1541 阅读 · 0 评论 -
java.lang.IllegalAccessException
java.lang.IllegalAccessException这个异常的解释是”没有访问权限”,当应用程序要调用一个类,但当前的方法即没有对该类的访问权限便会出现这个异常。对程序中用了Package的情况下要注意这个异常。一般检查调用的方法或者类,是否有访问权限,是否忘记添加public 修饰符...原创 2021-08-30 16:55:02 · 965 阅读 · 0 评论 -
SourceSet with name ‘main‘ not found
FAILURE: Build failed with an exception.Where:Initialization script ‘/tmp/GreenDaoGenerator_main__.gradle’ line: 21What went wrong:A problem occurred configuring project ‘:nlv_prison_console’.Could not create task ‘:nlv_prison_console:GreenDaoG原创 2021-07-26 17:06:52 · 477 阅读 · 0 评论 -
svn: E230001: Server SSL certificate verification failed
Android studio commit 提交SVN 失败,提示该错误Commit failed with error0 file committed, 5 files failed to commit: ******************svn: E170013: Commit failed (details follow):svn: E170013: Unable to connect to a repository at URL 'https://********************原创 2021-07-19 11:00:33 · 618 阅读 · 1 评论 -
some formula symbols might be not display
WPS for Linux提示“系统缺失字体:some formula symbols might be not display:symbol、wingdings、wingdings 2、wingdings 3、webding”因为缺少某些字体导致,主要是特殊符号或公式字体等等目前WPS for Linux公式显示需要相应的Symbol字体(比如symbol, windings, mt extra等), 由于版权原因,WPS for Linux未对此类字体打包安装,如果您需要,请在授权的情况下使用此类字原创 2021-07-16 15:08:14 · 1466 阅读 · 1 评论 -
Execution failed for task ‘:component_app:dataBindingGenBaseClassesDebug
编译错误,记录一下编译项目时,出现该异常;Execution failed for task ':component_app:dataBindingGenBaseClassesDebug尝试clear, invalidata Cache/Restart ,无效最后删除工目录下的.gradle,.idea文件,然后重新编译解决其他作者遇到该问题的解决方法:https://blog.csdn.net/wodenhaowzg/article/details/107588068...原创 2021-07-16 16:52:53 · 2351 阅读 · 2 评论