简体   繁体   中英

unexpected token - android studio

在此处输入图像描述

I have a problem with my layout text code. Instead of displaying the code I wrote, it shows a bunch of weird symbols like:

"IHDR 0 0 �1

I thought this issue had to do with the file encoding, but I changed the global encoding to UTF-8 and still doesn´t show the code I wrote.

All suggestions are welcome. Thanks in advance.

Late answer but it will help others: You need to delete catches folder located in:

C:\Users\user\.AndroidStudio3.5\system\caches

Make sure android studio is closed before you delete, then after deletion you can launch it and it creates a new catch folder that solves your problem,

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM