Android项目原本是在Windows 32 Win7位系统上构建,系统JDK 版本是JDK 7。今天在Mac Mini,MAC OS 10.8 64位系统环境中,出现Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. 错误。
根据提示,方法1:项目右键 ->android tools->Fix Project
结果无效。
Google到的方法2:项目->Properties->Java Compiler。设置JDK compliance为1.6,并勾选enable specific seetings.
见:http://blog.csdn.net/satiling/article/details/7000846
依然无效。
最后在StackOverflow上看到一个方法:
Under Window -> Preferences -> Java -> Compiler, set Compiler compliance level to 1.6 or 1.5
解决了。