android studio 没有检测到错误

标签 android android-studio ide

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

enter image description here

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

最佳答案

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

关闭省电模式

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

在您的 IDE 中,代码分析将在您的 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

关于android studio 没有检测到错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27801755/

相关文章:

android - 为什么 MediaPlayer 重新启动后会重置位置?

android - 无法在 asyncTask 的 onPostExecute 中 Toast 消息

AndroidRuntimeException : android. webkit.WebViewFactory$MissingWebViewPackageException : Failed to find donor package: com. android.chrome

android - 无法在 ubuntu 上的 android studio 1.4 中解析 : junit:junit:4. 12

Android数据绑定(bind)包括来自不同模块的布局

java - 如何在 NetBeans 主窗口上放置图片?

android - Retrofit 在发出 GET 请求时返回空响应体

intellij-idea - 包名更改后,项目仍然使用旧包名来启动应用程序

c++ - 在 Windows 中编写和编译 A/C++ 程序的最快方法

visual-studio - vs2017 : Set font size for "Error List" tool window only?