Andriod开发-Multiple annotations found at this line:Unexpected text found in layout

来源:互联网 发布:逆战外卦大全软件 编辑:程序博客网 时间:2024/05/16 09:46

在layout的xml编写时出现下面的错误,

Multiple annotations found at this line:
 - Unexpected text found in layout
  file: " "
 - Content is not allowed in trailing
  section.

解决办法:

Window->Preferences->General->Editors->Text Editors->Show whitespace characters,

查看有没一些特殊字符存在或是一些隐藏字符的原因。

原因可能是我们从其他地方复制过来时存在着一些空格,回车等字符原因所致。

 

0 0