错误代码:E/FragmentManager(1337): No view found for id 0x7f030005 (com.example.mnews:layout/menu_frame)
来源:互联网 发布:linux进程查看命令 top 编辑:程序博客网 时间:2024/06/11 05:22
出现这个错误的时候,立刻就开始百度,谷歌,看了各种解答,都没有解决我的问题,最后才发现问题出在传的参数不对,一个小问题浪费了我很长时间,以后要注意,不要每次遇到问题就立刻搜索。自己给自己一些时间去试着找出问题出现的原因,问题出现的具体位置,试着自己去解决。
以下是报错信息:
E/FragmentManager(1337): No view found for id 0x7f030005 (com.example.mnews:layout/menu_frame)
代码是:
mMenuFragment = new MenuFragment();
getSupportFragmentManager().beginTransaction()
.replace(R.layout.menu_frame, mMenuFragment, "menu")
.commit();
仔细分析了原因,才知道自己大意,应该是R,id.menu_frame写成了layout的资源,说明自己的命名习惯还不是很好。
0 0
- 错误代码:E/FragmentManager(1337): No view found for id 0x7f030005 (com.example.mnews:layout/menu_frame)
- No view found for id 0x7f05003c (*) for fragment PlaceholderFragment
- No view found for id 0x7f080011 for fragment
- No view found for id 0x7f080005 (id/view_pager) for fragment
- java.lang.IllegalArgumentException:No view found for id for fragment
- java.lang.IllegalArgumentException: No view found for id 0x7f090003 for fragment MainFg{40d57e28 #0
- E/art: No implementation found for int com.baidu.speechsynthesizer
- 错误:java.lang.illegalArgumentException:No view id found for fragment
- java.lang.IllegalArgumentException: No view found for id
- 错误:No view found for id……
- java.lang.IllegalArgumentException: No view found for id
- Fragment嵌套Fragment no view found for id的处理
- No view found for id 0x7f09000d for fragment PlaceholderFragment{4136cdb8 #0 id=0x7f09000d}
- Fragment报java.lang.IllegalArgumentException:No view found for id 0x7f070250的错误
- 转:Fragment报java.lang.IllegalArgumentException:No view found for id 0x的错误
- java.lang.IllegalArgumentException: No view found for id 0x7f060000原因
- 错误:java.lang.IllegalArgumentException: No view found for id 0x7f1001c1
- error: No resource identifier found for attribute 'showAsAction' in package 'com.example.singlecheck
- 解决java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket异常
- Codeforces Gym 100340I Longest Common Subpair 字符串DP
- ELK日志管理
- 使用队列让线程同步
- 线程之间的通信
- 错误代码:E/FragmentManager(1337): No view found for id 0x7f030005 (com.example.mnews:layout/menu_frame)
- 一个双引号,愁白头
- 同源策略
- 构造函数综合小练习1
- 自定义缓存工具类----sharedPreferences
- get_optlong用法(linux解析命令行参数)
- leetcode刷题,总结,记录,备忘 260
- Combinations
- 将qint8类型的数组放进float类型的数组里面