ecplise的logcat怎么定位错误

qq_33830529 2016-08-04 02:31:04
本人小白一个 刚刚写ANDROID程序 有些大神说学会看logcat 可是这个怎么看 怎么 看出ERROR的 原因在哪 求指导 比如 我写了一个程序 会闪退 很简单的单击事件程序 有没有大神指导一下原因
08-04 14:23:58.055: E/android_hardware_fm.cpp(24396): register_android_hardware_fm_fmradio
08-04 14:23:58.055: E/FM_HAL(24396): [FM_HAL], fm_dynamic_lib is libbcmfm_if
08-04 14:23:58.055: E/FM_HAL(24396): [FM_HAL], libname is libbcmfm_if
08-04 14:23:58.055: E/fm_if.c(24396): find the id:libbcmfm_if and begins to open the devices
08-04 14:23:58.055: E/android_hardware_fm.cpp(24396): register_android_hardware_fm_fmradio, ret is 0
08-04 14:23:58.055: E/(24396): ProtocolErrorLog wangkang test!!
08-04 14:23:58.760: E/android_hardware_fm.cpp(24409): register_android_hardware_fm_fmradio
08-04 14:23:58.760: E/FM_HAL(24409): [FM_HAL], fm_dynamic_lib is libbcmfm_if
08-04 14:23:58.760: E/FM_HAL(24409): [FM_HAL], libname is libbcmfm_if
08-04 14:23:58.760: E/fm_if.c(24409): find the id:libbcmfm_if and begins to open the devices
08-04 14:23:58.760: E/android_hardware_fm.cpp(24409): register_android_hardware_fm_fmradio, ret is 0
08-04 14:23:58.760: E/(24409): ProtocolErrorLog wangkang test!!
08-04 14:23:58.880: E/HwLauncher(4167): Launcher dialog dismiss failed : java.lang.IllegalArgumentException: no dialog with id 1 was ever shown via Activity#showDialog
08-04 14:23:59.665: E/hwpaysdk(19854): can not getField[main-1](/null:-1)
08-04 14:24:14.300: E/CommandListener(2417): readDefRoute call readDefRoute
08-04 14:24:14.300: E/SecondaryTablController(2417): isWifiDefaultRouteExisted /system/bin/ip route
08-04 14:24:15.305: E/CommandListener(2417): readDefRoute Rsp ok
08-04 14:24:29.740: E/Thermal-daemon(2430): [ap] temp_new :29 temp_old :30
08-04 14:24:43.955: E/HwSystemManager(3627): CommonMethodUtil:/getTemplateMobileAutomatically: no SIM card using data
08-04 14:24:43.980: E/HwSystemManager(3627): TrafficNotifyOverMarkForDay:notifyTafficOverMarkForDay: prefferredImsi is null.
08-04 14:24:43.985: E/HwSystemManager(3627): CommonMethodUtil:/getTemplateMobileAutomatically: no SIM card using data
08-04 14:24:44.005: E/HwSystemManager(3627): TrafficNotifyOverMarkForMonth:notifyTafficOverMarkForMonth: prefferredImsi is null.
08-04 14:24:44.010: E/HwSystemManager(3627): CommonMethodUtil:/getTemplateMobileAutomatically: no SIM card using data
08-04 14:24:44.030: E/HwSystemManager(3627): TrafficNotifyExcessForMonth:notifyTafficExcessForMonth: prefferredImsi is null.
08-04 14:24:45.315: E/CommandListener(2417): readDefRoute call readDefRoute
08-04 14:24:45.315: E/SecondaryTablController(2417): isWifiDefaultRouteExisted /system/bin/ip route
08-04 14:24:46.320: E/CommandListener(2417): readDefRoute Rsp ok
08-04 14:25:16.335: E/CommandListener(2417): readDefRoute call readDefRoute
08-04 14:25:16.335: E/SecondaryTablController(2417): isWifiDefaultRouteExisted /system/bin/ip route
08-04 14:25:17.340: E/CommandListener(2417): readDefRoute Rsp ok
08-04 14:25:47.350: E/CommandListener(2417): readDefRoute call readDefRoute
08-04 14:25:47.350: E/SecondaryTablController(2417): isWifiDefaultRouteExisted /system/bin/ip route
08-04 14:25:48.355: E/CommandListener(2417): readDefRoute Rsp ok
08-04 14:26:18.365: E/CommandListener(2417): readDefRoute call readDefRoute
08-04 14:26:18.365: E/SecondaryTablController(2417): isWifiDefaultRouteExisted /system/bin/ip route
08-04 14:26:19.370: E/CommandListener(2417): readDefRoute Rsp ok
08-04 14:26:35.095: E/hwpaysdk(19854): can not getField[main-1](/null:-1)
08-04 14:26:39.885: E/Thermal-daemon(2430): [ap] temp_new :30 temp_old :29
08-04 14:26:49.380: E/CommandListener(2417): readDefRoute call readDefRoute
08-04 14:26:49.380: E/SecondaryTablController(2417): isWifiDefaultRouteExisted /system/bin/ip route
08-04 14:26:50.390: E/CommandListener(2417): readDefRoute Rsp ok
08-04 14:26:54.905: E/Thermal-daemon(2430): [ap] temp_new :29 temp_old :30
08-04 14:27:04.915: E/Thermal-daemon(2430): [ap] temp_new :30 temp_old :29
08-04 14:27:09.925: E/Thermal-daemon(2430): [ap] temp_new :29 temp_old :30
08-04 14:27:14.930: E/Thermal-daemon(2430): [ap] temp_new :30 temp_old :29
08-04 14:27:15.745: E/HwSystemManager(3627): BgPowerManagerService: conusmPower = -28 result = -328 flag1 =false flag2 = false
08-04 14:27:20.400: E/CommandListener(2417): readDefRoute call readDefRoute
08-04 14:27:20.400: E/SecondaryTablController(2417): isWifiDefaultRouteExisted /system/bin/ip route
08-04 14:27:21.405: E/CommandListener(2417): readDefRoute Rsp ok
08-04 14:27:43.960: E/HwSystemManager(3627): CommonMethodUtil:/getTemplateMobileAutomatically: no SIM card using data
08-04 14:27:43.985: E/HwSystemManager(3627): TrafficNotifyOverMarkForDay:notifyTafficOverMarkForDay: prefferredImsi is null.
08-04 14:27:43.990: E/HwSystemManager(3627): CommonMethodUtil:/getTemplateMobileAutomatically: no SIM card using data
08-04 14:27:44.015: E/HwSystemManager(3627): TrafficNotifyOverMarkForMonth:notifyTafficOverMarkForMonth: prefferredImsi is null.
08-04 14:27:44.015: E/HwSystemManager(3627): CommonMethodUtil:/getTemplateMobileAutomatically: no SIM card using data
08-04 14:27:44.040: E/HwSystemManager(3627): TrafficNotifyExcessForMonth:notifyTafficExcessForMonth: prefferredImsi is null.
08-04 14:27:51.415: E/CommandListener(2417): readDefRoute call readDefRoute
08-04 14:27:51.415: E/SecondaryTablController(2417): isWifiDefaultRouteExisted /system/bin/ip route
08-04 14:27:52.420: E/CommandListener(2417): readDefRoute Rsp ok
08-04 14:28:09.990: E/Thermal-daemon(2430): [pa_0] temp_new :30 temp_old :29
08-04 14:28:22.430: E/CommandListener(2417): readDefRoute call readDefRoute
08-04 14:28:22.430: E/SecondaryTablController(2417): isWifiDefaultRouteExisted /system/bin/ip route
08-04 14:28:23.435: E/CommandListener(2417): readDefRoute Rsp ok
08-04 14:28:40.020: E/Thermal-daemon(2430): [pa_0] temp_new :29 temp_old :30
08-04 14:28:40.025: E/Thermal-daemon(2430): [flash_led] temp_new :29 temp_old :28
08-04 14:28:45.025: E/Thermal-daemon(2430): [pa_0] temp_new :30 temp_old :29
...全文
269 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
悠然Lucky 2016-08-04
  • 打赏
  • 举报
回复
删除null;删除this和super; 点击事件可以 but.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // showView.setText("输入的内容是"); } });
moonFY 2016-08-04
  • 打赏
  • 举报
回复
为何你要用this和super
qq_33830529 2016-08-04
  • 打赏
  • 举报
回复
引用 4楼东方旭日映朝霞 的回复:
Launcher dialog dismiss failed : java.lang.IllegalArgumentException: no dialog with id 1 was ever shown via Activity#showDialog 从英文来分析是dialog在还没有调用show()的情况下去调用dismiss(),所以异常了(上面那个回答手误了,删除不掉。。)
那有没有合适的修改方法 这是我的源代码
sunshine-zwq 2016-08-04
  • 打赏
  • 举报
回复
Launcher dialog dismiss failed : java.lang.IllegalArgumentException: no dialog with id 1 was ever shown via Activity#showDialog 从英文来分析是dialog在还没有调用show()的情况下去调用dismiss(),所以异常了(上面那个回答手误了,删除不掉。。)
sunshine-zwq 2016-08-04
  • 打赏
  • 举报
回复
Launcher dialog dismiss failed : java.lang.IllegalArgumentException: no dialog with id 1 was ever shown via Activity#showDialog
qq_33830529 2016-08-04
  • 打赏
  • 举报
回复
引用 1楼風言楓語 的回复:
Launcher dialog dismiss failed : java.lang.IllegalArgumentException: no dialog with id 1 was ever shown via Activity#showDialog http://blog.csdn.net/murphykwu/article/details/8426287 你看下 是不是这个原因 截LOG用截图 你这个都看花眼了
这个原因是什么?该怎么改
風言楓語 2016-08-04
  • 打赏
  • 举报
回复
Launcher dialog dismiss failed : java.lang.IllegalArgumentException: no dialog with id 1 was ever shown via Activity#showDialog http://blog.csdn.net/murphykwu/article/details/8426287 你看下 是不是这个原因 截LOG用截图 你这个都看花眼了

80,490

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧