My Eclipse, together with Android SDK has settings for java compiler:
– Compiler compliance level : 1.6 ( Ubuntu + openjdk) ( Window –> Pref –> Java –> Compiler)
when import ActionBarSherlock project, I must change it back to this compliance level.
–> Enable Project Specific Setting.
–> Set Compiler Compliance level of this project to be 1.6
Clear and rebuild project.