Android Studio 3.3 corrupted all the project files in new bug

限于喜欢 提交于 2020-07-08 12:51:52

问题


After updating Android Studio to the latest 3.3 version everything was going fine until suddenly gradle build failed, then indexing failed because can't read the idea files. I opened the .imi file and surprise! the contents have been replaced with some Apache2 license! Not just that every single xml file in the project is now an Apache license with length as every file also every Java/SQL file is now Chinese gibberish with a UTF-8 error on top which is also unrelated.

Anyway on the system file explorer and every file is correct.
The bug isn't related to the build or idea or any file inside the project or any program file (the problem will persist reinstalling Android Studio).

EDIT: there was a similar problem in the past but the glitch was reintroduced in Android Studio 3.3


回答1:


The solution is to manually erase the contents of this folder:

Windows

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

Linux/Mac

~/.AndroidStudio3.3/system/caches

And restart the program.



来源:https://stackoverflow.com/questions/54978182/android-studio-3-3-corrupted-all-the-project-files-in-new-bug

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!