今天将ADT更新了下,导入以前的工程,eclipse报了如下错误:
1 | 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。
参考:http://www.gqweb.net/%E8%A7%A3%E5%86%B3%EF%BC%9Aandroid-android-requires-compiler-compliance-level-5-0-or-6-0-found-1-4-instead-please-use-android-tools-fix-project-properties-%E9%94%99%E8%AF%AF_199.html