`

解决:Android Android requires compiler compliance level 5.0 or 6.0. 错误

阅读更多
今天将ADT更新到最新的12.0版本,重新导入以前的工程,没想到竟然报如下错误:

Android requires compiler compliance level 5.0 or 6.0. Found '1.4' instead. Please use Android Tools > Fix Project Properties.

按提示在工程文件上 右键 -> Android Tools -> Fix Project Properties ,无效。

手动打开Project Properties -> java Compiler -> 选上Enable project specific settings -> 再选择 Compiler Compliance Leave(选择任意一个非默认的值) -> OK

重复第2步,将Compiler Compliance Leave选为正确的值,OK。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics