Android Studio - Logcat 没有将我带到发生异常的代码行

Android Studio - Logcat does not take me to the line of code where Exception occured

嗨,我正在阅读 Android 编程:The Big Nerd Ranch 指南。

在第 4 章中,它说如果我在 Logcat 中这样做:"Double-click this line, and Eclipse will take you to that line in your source code."

问题是我正在使用 Android Studio,当我双击该行或任何其他行时,它不会将我带到 Android Studio 中的代码行。这是它应该如何工作?如果是这样,我如何找到导致异常的代码行?

谁能指教一下?

Android Studio 将通过双击 logcat 导航到发生异常的行。我认为您的观看 logcat 来自 "Android Device Monitor"。如果关闭它,您将在 android 工作室 window 的底部获得默认 logcat。