Strange xml error: Incorrect line ending

前端 未结 15 558
臣服心动
臣服心动 2021-02-01 13:42

I haven\'t used Eclipse since 1 week ago. Today I started it and I noticed that it loaded slowly. When it was started it prompted this:

http://tinypic.com?ref=2zpk1g2&am

15条回答
  •  暖寄归人
    2021-02-01 14:41

    My solution to the Android SDK/ADT 21 xml layout error.

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

    Example:

    
    

    />from here...

    Marking the space between the tags after where you get the error and hit enter and then ctrl s (save) removes it.

    ...to here<

    
    

    update: if it's only one line between the tags, set the marker there and press ctrl+d (delete) and the ctrl+s (save)

提交回复
热议问题