I got this error message in one of my Android layout files (some api library that i downloaded from the web) thought there was no syntax error in that line number that displayed this error. So this was something to do with carriage return and newline character mismatch.
Way's to resolve this issue for ADT Eclipse,
1. Cut the content of the file using Command + X (Mac OS X)/ Ctrl + X (Windows).
2. And Just Paste the content back to the file : Command + V (Mac OS X)/ Ctrl + V (Windows).
It seems like when you Format the code using Command + Shift + F (Mac OS X)/ Ctrl + Shift + F (Windows) also does the trick.