The method onClick(View) must override a superclass method 请将@Override注释掉就可以了 Normally this ""bug"" happens, when you are using a JRE below 1.6 .