解决Android requires compiler compliance level 5.0.错误

来源:互联网 发布:仿淘宝商城源码html 编辑:程序博客网 时间:2024/05/22 10:00
 

首先清理项目,然后按以下步骤进行:

1. 项目 右键 ->android tools ->Fix Project

2. 如果不可以,检查Project -> Properties->Java Compiler

确认JDK compliance被设置为1.6,并且enable specific seetings.

这个时候再clean一下项目,问题基本可以解决