Android requires compiler compliance level 5.0 or 6.0. Found '1.4' instead.

今天打开Eclipse时出现这样的错误:

Android requires compiler compliance level 5.0 or 6.0. Found '1.4' instead. Please fix project properties 

解决办法:

 

1. 项目 右键 ->android tools ->Fix Project

2. 如果不可以,检查Project -> Properties->Java Compiler 

    确认JDK compliance被设置为1.6,并且enable specific seetings.

你可能感兴趣的:(android,tools,project,fix)