意外令牌是什么意思,我该如何解决?

意外令牌是什么意思,我该如何解决?

问题描述:

Android Studio告诉我,有一些意外令牌".

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

这些是什么?

屏幕截图:

代码错误

错误

这些行中有不可见的字符,\ 8232是行分隔符.可能是您将其复制到了某个地方.

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

尝试将其粘贴到记事本/TextEdit中,然后从那里复制文本.重点是摆脱格式和多余的字符.或者,您也可以删除这些行,然后手动重新输入.

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.