Error(1,1)illegalcharacter ‘\ufeff’ when compiling on android studio

That’s a problem related to BOM (Byte Order Mark) character. Byte Order Mark
BOM is a Unicode character used for defining a text file byte order and comes in the start of the file. Eclipse doesn’t allow this character at the start of your file, so you must delete it. For this purpose, use a rich text editor, such as Notepad++, and save the file with encoding “UTF-8 without BOM.” That should remove the problem.

Leave a Comment