Android的控制台错误:"需要的.class兼容性设置为5.0。请修复项目属性" [英] Android Console Error: "requires .class compatibility set to 5.0. Please fix project properties"
问题描述
只是做了新的安装Eclipse 3.5和Android平台(SDK的和ADT)的。我这个工作在不同的机器了几次,所以我pretty肯定我明白了一切正确的配置。
Just did a fresh Install of Eclipse 3.5 and the Android Platform (SDK's and ADT). I've done this a few times on different machines and so I'm pretty sure I've got everything configured properly.
尝试导入Android项目,并在控制台窗口中收到以下错误:
Tried importing an Android project and received the following error in the console window:
的Android需要的.class兼容性设置为5.0。请修复项目属性。
我以前从来没见过这个错误。我能想到的唯一的事情是,它谈论的构建目标?我已经得到了项目构建目标设定为1.6(API等级4),这就是我想要的。看来愚蠢,他们会要求我更改为更高级别的API ...
I've never seen this error before. The only thing I can think of is that its talking about the build target? I've got the project build target set to 1.6 (API Level 4), Which is where I want it. Seems silly that they would require me to change to a higher API level...
在其他人之前看到这个错误?
Anyone else see this error before?
推荐答案
我相信,Android正在谈论的Java字节code格式,您可以设置窗口/ preferences,的Java /编译器/编译器遵从性水平。
I believe that Android is talking about the Java bytecode format, which you can set in "Window/Preferences", "Java/Compiler/Compiler Compliance Level".
这篇关于Android的控制台错误:"需要的.class兼容性设置为5.0。请修复项目属性"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!