公告
财富商城
积分规则
提问
发文
2019-05-15 09:01发布
\"骚年 ilove
my android studio gone crazy like this please help??
file was loaded in the wrong encoding: 'UTF-8' in android studio
That's not an encoding issue. That's compiled bytecode, the content of a .class file. You cannot simply rename it into .java and expect it to work.
For people in future:
I had the same problem.
I was able to solve it simply by making a copy of the project and opened the copied project. Copied project worked perfectly fine.
Note: I got this problem because of improper shutdown of my PC.
This is an old issue, but if anyone comes across this, what isn't mentioned above, but happening for me is that the original file on disk is intact java code. Android Studio is reading it like this for some reason.
最多设置5个标签!
That's not an encoding issue. That's compiled bytecode, the content of a .class file. You cannot simply rename it into .java and expect it to work.
For people in future:
I had the same problem.
I was able to solve it simply by making a copy of the project and opened the copied project. Copied project worked perfectly fine.
Note: I got this problem because of improper shutdown of my PC.
This is an old issue, but if anyone comes across this, what isn't mentioned above, but happening for me is that the original file on disk is intact java code. Android Studio is reading it like this for some reason.