Android Studio:error: illegal character: '\u2028'

It's the new line character, if you go to each of the lines that are causing the error and delete the 'invisible' last character then the errors will resolve

Go to end of the line that is causing the error and hit backspace once, for each of the lines that have the illegal character error.


If you are mac user then you can

Copy and paste text in TextWrangler View -> Text
 Display -> Show Invisibles

It will show you symbol like "|". Delete this and you are good to go.


Well, just deleting all the characters and rewriting them again helped. So crazy..