现在的位置: 首页 > 综合 > 正文

Android requires compiler compliance level 5.0 or 6.0. Found ’1.7′ instead. 解决方法

2013年09月26日 ⁄ 综合 ⁄ 共 569字 ⁄ 字号 评论关闭

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

http://stackoverflow.com/questions/7637144/android-requires-compiler-compliance-level-5-0-or-6-0-found-1-7-instead-plea

解决了。

抱歉!评论已关闭.