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

本文详细介绍了在将ADT更新到最新版本后,遇到Android工程报错'Androidrequirescompilercompliancelevel5.0or6.0.Found'1.4'instead'的解决方案,包括如何正确使用AndroidTools>FixProjectProperties功能,以及手动调整ProjectProperties中的Java Compiler设置,确保项目编译级别符合需求。
今天将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。
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值