androidjsontokenillegal-characters

What does an unexpected token mean and can I solve it?


Android Studio is telling me that there are some "Unexpected Tokens"..

what are these??

screenshots:

error in code where the error is

error in Messages error:


Solution

  • You have invisible character in these lines, \8232 is line separator. Possibly you copied it somewhere.

    Try to paste it in Notepad/TextEdit and copy text from there. Point is to get rid of formatting and extra characters. Or you can just delete these lines and retype them manually.