[Android] Eclipse: Android requires .class compatibility set ...to 5.0

Domain/Android 2010.06.15 21:01

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

- go to "project -> property -> Java Compiler ->"
- Set "Compiler compliance level" to 1.5. And push "Apply" button.

Now it is resolved.

Interesting thing : Once this issue is resolved by changing "Compiler compliance", even if it we restore this value back to 1.6, this error isn't reproduced. I don't have any idea about the reason.

tags :
Trackbacks 0 : Comments 0