eclipse bug之'<>'operator is not allowed for source level below 1.7


eclipse中导入工程,报这个错'<>'operator is not allowed for source level below 1.7,把jdk改成1.7后,提示Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tools > Fix Project Properties.,执行fix无效。求高位高手给指点一二。

 

向左转|向右转

 解决:

报错:'<>' operator is not allowed for source level below 1.7

这是eclipse的编译环境与项目的要求不对应造成的,这个错误一般是导入别的项目才出现的。
解决:
右键项目--属性--勾选Enable project specific settings--Compiler compliance level--选择1.7--OK


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM