静态Handler中使用switch判断消息代码时,出现Constant expression required

静态Handler中使用switch判断消息代码时,出现Constant expression required(case中使用的的必须是常量,也就是要使用进行判断的值要是常量,要进行final修饰才可以)静态Handler中使用switch判断消息代码时,出现Constant expression required
而这个变量我是使用了final的,
静态Handler中使用switch判断消息代码时,出现Constant expression required
最后发现是没有使用static关键字修饰,Handler是静态的这个变量也修饰为静态就没有报错了