android - android studio中应用程序崩溃后错误日志和进程自动清除

标签 android android-studio-4.1

你好,我在 mac 上更新了我的 android studio

Android Studio 4.1
Build #AI-201.8743.12.41.6858069, built on September 23, 2020
Runtime version: 1.8.0_242-release-1644-b3-6222593 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.15.7
GC: ParNew, ConcurrentMarkSweep
Memory: 2014M
Cores: 4
Registry: ide.new.welcome.screen.force=true
Non-Bundled Plugins: org.jetbrains.kotlin

更新 Android Studio 4.1 后,我在 Logcat 中发现问题

I Am Not Able To See My debuggable Process After App Crash in Logcat

每当我的应用程序在移动设备中崩溃时,新进程启动就可以了

但旧的可调试进程未显示在下拉选择中......因此我无法跟踪我的崩溃或错误

在所附的屏幕截图中,进程号:- 9018 是新进程,旧进程已从下拉列表中消失

enter image description here

最佳答案

在 Logcat 中设置包过滤器以显示应用程序包的错误消息。

打开 Logcat,单击“编辑过滤器配置”。 然后,在“过滤器名称”中填写您要过滤的包名称。接下来,添加包名称并单击“确定”。

下图显示了一个示例 enter image description here

瞧,它现在应该可以正常工作,而无需清除 Logcat 输出。

关于android - android studio中应用程序崩溃后错误日志和进程自动清除,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64399569/

相关文章:

android - 如何在 CameraFrame android + openCV 上使用阈值

javascript - Windows 上是否有适合 React Native 的良好 IDE?

Android Studio 4.1 ADB 服务器问题

macos-big-sur - macOS Big Sur Beta上的Android Studio崩溃

Android Studio 4.1 模拟器崩溃

android - 当组件的可见性设置为 GONE 时,是否可以与其进行交互?

android - ImageView 与 ImageButton 与按钮

android - @font-face 不适用于 Chrome for Android

flutter - 插件错误 : Plugin "Json2Dart" is incompatible (supported only in IntelliJ IDEA)