As of ADT 14, resource fields cannot be used as switch cases. Invoke this fix to get more inform
解决的方法是
For all of those who didn’t resolve this problem yet - this is what i`v done:
Go to your “project.properties” file.
Delete this line ” android.library=true”
The reason why i had this problem, was because i did a copy&paste the properties file into my project (was missing).
cheers.