1.项目右键 ->android tools->Fix Project
2.如果不可以,检查Project->Properties->Java Compiler确认Compiler compliance level被设置为1.6,并且Enable project specific settings.