android error:requires compiler compliance level 5.0 or 6.0. Found '1.4' instead

导入工程报错: 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
方法二:
检查Project->Properties->Java Compiler
确认JDK compliance被设置为1.6,并且enable specific seetings.(在本博客发布之时主流的jdk环境还是1.6.所以改为1.6,以后随着jdk的发展也会不一样)

你可能感兴趣的:(android error:requires compiler compliance level 5.0 or 6.0. Found '1.4' instead)