关于MessageQueue-JNI的错误问题解决

11-19 14:46:23.016: E/MessageQueue-JNI(10777): Exception in MessageQueue callback: handleReceiveCallback
11-19 14:46:23.026: E/MessageQueue-JNI(10777): java.lang.IllegalArgumentException: parameter must be a descendant of this view
11-19 14:46:23.026: E/MessageQueue-JNI(10777): 	at android.view.ViewGroup.offsetRectBetweenParentAndChild(ViewGroup.java:4420)
11-19 14:46:23.026: E/MessageQueue-JNI(10777): 	at android.view.ViewGroup.offsetDescendantRectToMyCoords(ViewGroup.java:4357)
11-19 14:46:23.026: E/MessageQueue-JNI(10777): 	at android.view.FocusFinder$SequentialFocusComparator.getRect(FocusFinder.java:688)
11-19 14:46:23.026: E/MessageQueue-JNI(10777): 	at android.view.FocusFinder$SequentialFocusComparator.compare(FocusFinder.java:660)
11-19 14:46:23.026: E/MessageQueue-JNI(10777): 	at android.view.FocusFinder$SequentialFocusComparator.compare(FocusFinder.java:641)
11-19 14:46:23.026: E/MessageQueue-JNI(10777): 	at java.util.TimSort.countRunAndMakeAscending(TimSort.java:320)
11-19 14:46:23.026: E/MessageQueue-JNI(10777): 	at java.util.TimSort.sort(TimSort.java:185)
11-19 14:46:23.026: E/MessageQueue-JNI(10777): 	at java.util.TimSort.sort(TimSort.java:169)
11-19 14:46:23.026: E/MessageQueue-JNI(10777): 	at java.util.Arrays.sort(Arrays.java:2038)
11-19 14:46:23.026: E/MessageQueue-JNI(10777): 	at java.util.Collections.sort(Collections.java:1891)
11-19 14:46:23.026: E/MessageQueue-JNI(10777): 	at android.view.FocusFinder.findNextInputFocusInRelativeDirection(FocusFinder.java:198)
11-19 14:46:23.026: E/MessageQueue-JNI(10777): 	at android.view.FocusFinder.findNextFocus(FocusFinder.java:166)
11-19 14:46:23.026: E/MessageQueue-JNI(10777): 	at android.view.FocusFinder.findNextInputFocus(FocusFinder.java:102)
11-19 14:46:23.026: E/MessageQueue-JNI(10777): 	at android.view.FocusFinder.findNextFocus(FocusFinder.java:83)
11-19 14:46:23.026: E/MessageQueue-JNI(10777): 	at android.view.FocusFinder.findNextFocus(FocusFinder.java:65)
11-19 14:46:23.026: E/MessageQueue-JNI(10777): 	at android.view.ViewRootImpl.focusSearch(ViewRootImpl.java:3994)
11-19 14:46:23.026: E/MessageQueue-JNI(10777): 	at android.view.ViewRootImpl.clearChildFocus(ViewRootImpl.java:2635)
11-19 14:46:23.026: E/MessageQueue-JNI(10777): 	at android.view.ViewGroup.clearChildFocus(ViewGroup.java:863)
11-19 14:46:23.026: E/MessageQueue-JNI(10777): 	at android.view.ViewGroup.clearChildFocus(ViewGroup.java:863)
11-19 14:46:23.026: E/MessageQueue-JNI(10777): 	at android.view.ViewGroup.clearChildFocus(ViewGroup.java:863)
11-19 14:46:23.026: E/MessageQueue-JNI(10777): 	at android.view.ViewGroup.clearChildFocus(ViewGroup.java:863)
11-19 14:46:23.026: E/MessageQueue-JNI(10777): 	at android.view.ViewGroup.clearChildFocus(ViewGroup.java:863)
11-19 14:46:23.026: E/MessageQueue-JNI(10777): 	at android.view.ViewGroup.clearChildFocus(ViewGroup.java:863)
11-19 14:46:23.026: E/MessageQueue-JNI(10777): 	at android.view.ViewGroup.clearChildFocus(ViewGroup.java:863)
11-19 14:46:23.026: E/MessageQueue-JNI(10777): 	at android.view.ViewGroup.removeViewInternal(ViewGroup.java:3787)
11-19 14:46:23.026: E/MessageQueue-JNI(10777): 	at android.view.ViewGroup.removeViewInternal(ViewGroup.java:3748)
11-19 14:46:23.026: E/MessageQueue-JNI(10777): 	at android.view.ViewGroup.removeView(ViewGroup.java:3680)
11-19 14:46:23.026: E/MessageQueue-JNI(10777): 	at android.support.v4.view.ViewPager.removeView(ViewPager.java:1321)

这个错误的解决:

ViewPager中调用的方法:

				try {
					myPetAdapter.destroyItem((View) select_pet_mores_viewPager, arg0, null);
					views[arg0] = myPetAdapter.instantiateItem((View) select_pet_mores_viewPager, arg0);
				} catch (Exception e) {
					// TODO: handle exception
					MM.sysout("Exception in MessageQueue callback: handleReceiveCallback");
				}
其中调用了:destroyItem、instantiateItem
加入异常处理就可以了
时间: 2024-10-10 16:35:36

关于MessageQueue-JNI的错误问题解决的相关文章

jni 编译错误error: unknown type name '__va_list'

platforms\android-9\arch-arm\usr\include\stdio.h:257:37: error: unknown type name '__va_list' 解决方法: 默认的android-9不兼容 Applicaton.mk  添加APP_PLATFORM := android-21 jni 编译错误error: unknown type name '__va_list'

glm编译错误问题解决 formal parameter with __declspec(align('16')) won't be aligned

參考:http://stackoverflow.com/questions/25300116/directxxmmatrix-error-c2719-declspecalign16-wont-be-aligned 參考:http://blog.csdn.net/yuanwenmao/article/details/6530826 http://blog.csdn.net/asfdasfdsf/article/details/30047471 环境:vs2013,glm-0.9.6.1 一.glm

oracle11.2.0.3.0 RAC aix7100-02-02-1316 crs-4124,crs-4000错误问题解决

原因: 在测试机上首次安装oracle11G RAC,安装完成后正常使用,过了一段时间后重启节点1测试是否可以自启动,解决节点1没有自启动,手工启动也无法启动 过程: 在节点一上运行: # pwd /u01/grid/bin # ./crsctl start crs CRS-4124: Oracle High Availability Services startup failed. CRS-4000: Command Start failed, or completed with errors

ie8此加载项无法恢复&网站还原错误问题解决=lr成功打开ie成功录制脚

问题:ie8打开公司数字神经时出现此加载项无法恢复,网站还原错误. 解决方法: 1.管理ie加载项,全部禁用以后问题仍然存在,确定不是加载项问题. 2.重设ie8,工具-internet选项-高级-重置:删除个性化设置.不行. 3.卸载重装ie8,问题仍然存在. 4.杀毒,强杀木马.问题仍然存在. 点击工具-internet选项,出现如下错误:Rundll32.exe 无法找到入口 无法定位程序输入点reginstallw于动态链接库advpack.dll上. 5.将网站加入兼容性视图设置中.不

sql读写图片时Image.FromStream方法提示参数错误问题解决

我们通常这么写 using (SqlDataReader drm = sqlComm.ExecuteReader()) { drm.Read();//以下把数据库中读出的Image流在图片框中显示出来. MemoryStream ms = new MemoryStream((byte[])drm["Logo"]); Image img = Image.FromStream(ms); this.pictureBox1.Image = img; } 我的写数据 private void b

ie8此加载项无法恢复&网站还原错误问题解决=lr成功打开ie成功录制脚本

问题:ie8打开公司数字神经时出现此加载项无法恢复,网站还原错误. 解决方法: 1.管理ie加载项,全部禁用以后问题仍然存在,确定不是加载项问题. 2.重设ie8,工具-internet选项-高级-重置:删除个性化设置.不行. 3.卸载重装ie8,问题仍然存在. 4.杀毒,强杀木马.问题仍然存在. 点击工具-internet选项,出现如下错误:Rundll32.exe 无法找到入口 无法定位程序输入点reginstallw于动态链接库advpack.dll上. 5.将网站加入兼容性视图设置中.不

undefined reference to `clock_gettime' 链接错误问题解决

当你编译程序时, 碰到下面的链接错误, timeval.c:(.text+0x6f): undefined reference to `clock_gettime' 则你只需要在你的Makefile文件里面添加    -lrt  ,重新编译即可. undefined reference to `clock_gettime' 链接错误问题解决

glm编译错误问题解决 formal parameter with __declspec(align('16')) won't be aligned

参考:http://stackoverflow.com/questions/25300116/directxxmmatrix-error-c2719-declspecalign16-wont-be-aligned 参考:http://blog.csdn.net/yuanwenmao/article/details/6530826 http://blog.csdn.net/asfdasfdsf/article/details/30047471 环境:vs2013,glm-0.9.6.1 一.glm

【转】python mysql数据库 'latin-1' codec can't encode character错误问题解决

UnicodeEncodeError: 'latin-1' codec can't encode character "UnicodeEncodeError:'latin-1' codec can't encode character ..." This is because MySQLdb normally tries to encode everythin to latin-1. This can be fixed by executing the following comman

Python文件读取编码错误问题解决之(PyCharm开发工具默认设置的坑。。。)

刚接触Python学习,正准备做个爬虫的例子,谁知道代码一开始就遇到了一个大坑,狂汗啊. 问题是这样的:我通过代码爬取了博客园首页的HTML代码并存入到blog.txt文件当中,然后准备读取出来之后进行分析,可就在读取文件的这一步出现了问题. 执行读取代码的时候程序总是会抛一个叫 “UnicodeEncodeError: 'gbk' codec can't encode character '\xbb' in position 117274: illegal multibyte sequence