问题描述
- msg.obj cannot be resolved or is not a field
- 今天SVN了一个项目,打开发现好多包没加载,加载完成后出现了cannot be resolved or is not a field,不知如何做了,代码如下
其中msg.what msg.obj都提示cannot be resolved or is not a field。public class AlarmCfgHandler extends Handler { public AlarmCfgHandler(Looper looper) { super(looper); } public void handleMessage(Message msg) { switch (msg.what) { case comm_frame.SYS_CFG_RSP_FRM: sys_cfg_rsp sys_cfg_rsp_info; sys_cfg_rsp_info = (sys_cfg_rsp)msg.obj; if(sys_cfg_rsp_info.child_type == comm_frame.SYS_CFG_TYPE_ALARM) { new AlertDialog.Builder(ctext).setTitle(""完成"") .setMessage(""报警设置成功"") .setPositiveButton(""确定"" null).show(); } break; case comm_frame.EVENT_RSP_FRM: event_info_rsp_class event_info_rsp; event_info_rsp = (event_info_rsp_class) msg.obj; comm_frame.invokeLongTimeToast(event_info_rsp ctext); break; } } }
解决方案
http://blog.csdn.net/liranke/article/details/16803295
时间: 2024-10-04 20:10:37