Android Studio - 项目中的所有文件名都是红色但没有错误 [英] Android Studio - All file names in project are red but there are no errors

查看:164
本文介绍了Android Studio - 项目中的所有文件名都是红色但没有错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Android Studio 中导入了一个 ADT 项目.我有很多错误,但我可以全部修复.我不认为如何"在这种情况下很重要,无论如何我都无法回忆起所有错误.该项目现在运行没有错误,但不知何故 Android Studio 将所有文件标记为红色.只是文件名,代码中没有错误.我尝试清理并重新启动.

I imported a ADT Project in Android Studio. I got a ton of errors, but I could fix them all. I don't think the "how" is important in this case, I wouldn't be able to recall all the errors anyways. The project runs now without errors, but somehow Android Studio marks all files red. Just the filenames, there are no errors in the code. I tried cleaning and restarting.

以前有人遇到过这样的事情吗?或者也许有人可以解决与 IntelliJ 相关的问题?

Did someone experience something like this before? Or maybe a related problem with IntelliJ someone could solve?


这是版本控制.该项目未版本化,但位于 SVN 控制的文件夹中.这就是红色所表示的.解决方案可能是将项目复制到不同的文件夹或将文件添加到版本控制.


It was the version control. The project was unversioned but in a SVN controlled folder. Thats what the red was indicating. A solution could be to copy the project to a different folder or to add the files to version control.

推荐答案

也许您正在看到 Android Studio 用来显示文件状态的文件状态颜色.打开设置并转到编辑器 > 颜色 &字体 > 文件状态.在这里您可以看到所有不同颜色的含义.我的猜测是你的红色文件是那种颜色,因为你还没有将它们添加到源代码管理中.

Perhaps you are seeing the File Status colors that Android Studio uses to show the status of the file. Open Settings and go to Editor > Colors & Fonts > File Status. Here you can see what all of the different colors mean. My guess is that your reddish files are that color because you have not yet added them to source control.

这篇关于Android Studio - 项目中的所有文件名都是红色但没有错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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