There\'s some weird problem with my workspace setup in Eclipse. I have one Android Library project and an application project which is linked to the library.
I removed the library reference from project properties-->Android (which was ticked IsLibrary) then immediately added it again (and is no longer ticked IsLibrary) and build and it worked for me.