How to solve incorrect line ending errors

  • Replies:2
  • Answered
Ashish Kumar
  • Forum posts: 6

Jul 27, 2014, 8:50:19 AM via Website

i downloaded a source code and run it. worked perfectly. then i opened it in eclipse usin import wizard, opened the directory res/layout/abc.xml. when i saw the file on console it was automatically showing error. as soon as i open any xml file it start showing error. errors are similar and shows message; Incorrect Line Ending: found carriage return(/r) without corrosponding new line (/n). please help me to solve this problem

Reply
Deactivated Account
  • Forum posts: 770

Jul 27, 2014, 9:30:19 AM via Website

Ashish Kumar

i downloaded a source code and run it. worked perfectly. then i opened it in eclipse usin import wizard, opened the directory res/layout/abc.xml. when i saw the file on console it was automatically showing error. as soon as i open any xml file it start showing error. errors are similar and shows message; Incorrect Line Ending: found carriage return(/r) without corrosponding new line (/n). please help me to solve this problem

instead of importing the file try to copy the content from .xml file and paste it into eclipse
or
Move the mouse cursor on error text and press press Ctrl+1
Select Fix line endings and press Enter

— modified on Jul 27, 2014, 9:32:20 AM

Ready To Help You.

Reply
Ashish Kumar
  • Forum posts: 6

Jul 27, 2014, 10:53:09 AM via Website

Thanx mobile crackers .it worked. just one word for you "awesome".

Reply