android studio没有检测到错误

问题描述:

我正在使用android studio 1.0.2,它似乎不会自动导入或检测错误。我能够使用ctrl + space获取方法建议,但我无法弄清楚为什么它没有检测到错误。如果我在代码行之间添加随机文本,则表示构建成功。

I am using android studio 1.0.2, it doesn't seem to auto import or detect errors. I was able to get method suggestions using ctrl + space but I couldn't figure out why its not detecting errors. If I add random text between lines of code it says build is successful.

附图是它的样子,我已经正确完成了android-studio设置。请帮帮我是否与最新的android studio构建有关?

attached image is how it looks like, I have android-studio settings done properly. Please help me is it something to do with latest android studio build?

如果不小心在android studio中有一个省电模式你点击它将禁用代码分析,这将减少电池消耗,性能也会增加,但它不会检测到任何错误并执行自动完成操作。

There is a power saver mode in android studio if accidentally you click on that it will disable code analysis which will reduce the battery consumption and performance will also increase but it will not detect any errors and do auto complete operations.

要禁用省电模式

- Go to File Menu of Studio
- Uncheck The Power Saver Mode

在您的IDE中,代码分析将使用Android工作室右上角的眼睛符号显示。

In your IDE code analysis will be shown using an eye symbol at the right corner of your android studio.

If Green means it is enabled and there is no error in your code.
If Red Means It is enabled but there are few errors in your code.
If It is white or blur then code analysis is disabled