Android Studio不执行自动错误检测 [英] Android Studio does not perform automatic error detection
问题描述
我在Mac OS X 10.10中使用Android Studio 1.1.0.我注意到当我编写如下代码时:
公共无效;
甚至:
+(错误)thisObjectiveCCodeShouleNeverCompileInJava:(ButSomehow *)itsNotComplaining
Android Studio没有抱怨.构建完该文件后,Gradle会显示该错误,但编辑器窗格仍未显示.我尝试使用 Navigate
> 下一个突出显示的错误
,我在文本光标上得到了以下气球:
我让它坐了半个小时,但仍然没有突出显示任何错误或警告.同样,将文本光标放在变量名中/上方不会在文件中突出显示其用法(但 Edit
> Find
> 突出显示文件中的用法
效果很好).
我尝试更新到1.2.x,但是我得到了:
有一次,当尝试进行 Make Project
时,我得到了以下信息:
这是怎么回事,并且有什么方法可以解决此问题而无需从头开始重新安装Android Studio?
大部分是因为我启用了省电模式.取消选中此重新启用的错误突出显示功能和其他类似功能.
I'm using Android Studio 1.1.0 in Mac OS X 10.10. I noticed that when I wrote code like:
public void;
or even:
+ (bad) thisObjectiveCCodeShouleNeverCompileInJava:(ButSomehow *)itsNotComplaining
Android Studio didn't complain. Once I built it, Gradle showed the error, but the editor pane still did not. I attempted to use Navigate
> Next Highlighted Error
, I got the following balloon over my text cursor:
I let it sit for up to half an hour and still, no errors or warnings were ever highlighted. Similarly, placing the text cursor in/on a variable name does not highlight its usages in the file (but Edit
> Find
> Highlight Usages in File
works fine).
I tried updating to 1.2.x, but I get this:
At one point, when attempting to Make Project
, I got the following:
What's going on, and is there any way to fix this without reinstalling Android Studio from scratch?
Most of this is because I had Power Save Mode enabled. Unchecking this re-enabled error highlighting and other such features.
这篇关于Android Studio不执行自动错误检测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!