android - Android Studio 中的错误检测

标签 android android-studio

我是 Android Studio 的新手,我有一个问题,在 Android Studio 中,当我遇到语法错误或类似错误时,Android Studio 不会像 Eclipse 那样在行首显示任何指示符,它只在面包屑路径中显示一条红色波浪线,它也以红色突出显示错误,但这有点难以检测,无论如何我可以像在 Eclipse 中那样启用该功能。任何帮助深表感谢。感谢您的宝贵时间和回复。

最佳答案

Android Studio (IntellJ) 在编辑器窗口右侧的 Validation side bar 中显示错误(和其他文件信息,例如更改)。该区域代表整个文件,不同颜色的标记显示在该区域以显示这些项目在文件中的位置。您也可以在该区域内单击以直接进入该区域,或者您可以将指针悬停在该区域上,弹出窗口将显示该区域的代码。

有关详细信息,请参阅 IntellJ documentation

以下是网站的相关信息:

IntellJ Editor

5. Validation side bar / marker bar

This is the bar to the right from the editing area, showing the green, red or yellow box on its top depending on whether your code is okay, or contains errors or warnings. This bar also displays active red, yellow, white, green and blue navigation stripes that let you jump exactly to the erroneous code, changed lines, search results, or TODO items.

关于android - Android Studio 中的错误检测,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26228486/

相关文章:

android - Android Studio 是否支持 AngularJS 进行 Android UI 设计?

android - Firebase Admin SDK导致gradle “Dependency Error”

android - 更新后,Project.xml 文件会自动在 android studio 中进行编辑和暂存以供提交

Android Studio 中的 JSON 语言注入(inject)?

java - 我想在我的集合的所有文档中保存相同的字符串

java - 如何在drawable中获取图像的ID

android - Alarmmanager和Soundpool-Android

java - android 崩溃报告中的奇怪堆栈

java - 与默认构造函数作斗争,隐式 super 构造函数未定义

android-studio - 尚未在Android Studio中运行“发布获取”