Android requires compiler compliance level 5.0. Please fix project properties.So here's what I did to fix this problem:
Right Click Project > Properties > Java Build Path > Order and Export Tab > Check Your Android SDK Version on the list (I got Android 2.2)
Right Click Project > Properties > Java Compiler > Check Enable Project Specific Settings > Select Compiler Compliance Level
In my case, I had to changed the compiler compliance level from 1.6 to 1.5
Click to enlarge. |
And that solves my problem. :)
For FREE programming tutorials, click the red button below and subscribe! :)
website