Incorrect line ending: found carriage return (\r) without corresponding newline (\n)

后端 未结 12 898
温柔的废话
温柔的废话 2020-12-24 11:37

I received error in my xml file. \"Incorrect line ending: found carriage return (\\r) without corresponding newline (\\n).

相关标签:
12条回答
  • 2020-12-24 11:59

    Using Eclipse on Windows?

    1. Open layout file
    2. Ctrl+Shift+F (Command+Shift+F in MacOSX)
    3. Save the layout file and close it.
    4. Delete any .out files the builder might have created.
    5. Clean project.
    0 讨论(0)
  • 2020-12-24 11:59

    It looks like stupid thing, But It worked for me

    1. select all (ctrl+a)
    2. cut (ctrl+x )
    3. Paste it again (ctrl+v)
    4. Save it (ctrl+s)

    It really worked for me.

    0 讨论(0)
  • 2020-12-24 11:59

    Just clean the project. In Eclipse go in project menu:

    Project-> Clean 
    

    It will resolve the problem.

    0 讨论(0)
  • 2020-12-24 12:01

    clean the project Project -> clean

    worked for me

    0 讨论(0)
  • 2020-12-24 12:03

    Close the xml file in the Eclipse open it in text editor (notepad or notepad++ and so forth..) save it. open it back in the eclipse In menu->Project->clean project.

    0 讨论(0)
  • 2020-12-24 12:04
    1. open layout file
    2. if any layout is freezed that freezed layout delete 3.ctrl + A 4.ctrl + shift + f
    3. save

    it will work

    0 讨论(0)
提交回复
热议问题