0

This error causes other issues like it prevent the IDE from recognizing R classenter image description here

  • 1
    Possible duplicate of [Invalid Characters in XML](http://stackoverflow.com/questions/730133/invalid-characters-in-xml) – OneCricketeer Jun 22 '16 at 15:54

2 Answers2

2

< is a character that you need to escape in xml. You need to write it as android:text="&gt;"

Refer to What characters do I need to escape in XML documents?

Community
  • 1
  • 1
antonio
  • 18,044
  • 4
  • 45
  • 61
2

Because there are some characters in XML that are not allowed in attributes. This is one of them. See also this so entry that provides more info

Community
  • 1
  • 1
GPuschka
  • 522
  • 3
  • 9