Android Studio 3.3 损坏了新错误中的所有项目文件 [英] Android Studio 3.3 corrupted all the project files in new bug

查看:42
本文介绍了Android Studio 3.3 损坏了新错误中的所有项目文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将 Android Studio 更新到最新的 3.3 版本后一切正常,直到突然 gradle build 失败,然后索引失败,因为无法读取创意文件.我打开 .imi 文件,大吃一惊!内容已替换为一些 Apache2 许可证!不仅仅是项目中的每个 xml 文件现在都是 Apache 许可证,并且每个文件都有长度,每个 Java/SQL 文件现在都是中文乱码,顶部还有一个 UTF-8 错误,这也是无关的.

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.

无论如何在系统文件资源管理器上,每个文件都是正确的.
该错误与构建或想法或项目中的任何文件或任何程序文件无关(问题将持续重新安装 Android Studio).

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).

过去有类似的问题,但在 Android Studio 3.3 中重新引入了故障

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

推荐答案

解决办法是手动擦除这个文件夹的内容:

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

视窗

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

Linux/Mac

~/.AndroidStudio3.3/system/caches

然后重新启动程序.

这篇关于Android Studio 3.3 损坏了新错误中的所有项目文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆