I encountered an error message in one of my Android layout files (from an API library downloaded from the web) even though there was no syntax error at the indicated line number. The issue was due to a mismatch between carriage return (\r) and newline (\n) characters.
Solution:
Ways to resolve this issue for ADT Eclipse:
- Cut the content of the file using Command + X (macOS) / Ctrl + X (Windows).
- Paste the content back into the file using Command + V (macOS) / Ctrl + V (Windows).
Update (2024):
Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!