Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Console Error: "requires .class compatibility set to 5.0. Please fix project properties"

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.

Tried importing an Android project and received the following error in the console window:

"Android requires .class compatibility set to 5.0. Please fix project properties."

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?

like image 612
plainjimbo Avatar asked Nov 09 '10 22:11

plainjimbo


1 Answers

I believe that Android is talking about the Java bytecode format, which you can set in "Window/Preferences", "Java/Compiler/Compiler Compliance Level".

like image 200
Jean Hominal Avatar answered Sep 25 '22 17:09

Jean Hominal