You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

求助:Android Studio未清缓存或打开Logcat时频繁闪退

Android Studio 异常闪退问题排查方案

问题现象

  • 未执行 Invalidate Cache and Restart 操作时,启动Android Studio后直接崩溃关闭
  • 打开Logcat界面会立即触发闪退
  • 已尝试重启电脑、重装Android Studio,问题仍未解决

可行解决步骤

  • 清理Logcat专属缓存
    定位到Android Studio的系统缓存目录,删除logcat子文件夹:

    • Windows:C:\Users\<你的用户名>\.AndroidStudio<版本号>\system\logcat
    • macOS:~/Library/Application Support/Google/AndroidStudio<版本号>/system/logcat
    • Linux:~/.AndroidStudio<版本号>/system/logcat
      删除后重启Android Studio,再尝试打开Logcat。
  • 调整Logcat默认设置
    启动Android Studio后先避开直接打开Logcat,进入Settings > Build, Execution, Deployment > Logcat,将默认日志级别改为Error,或添加一个精准的过滤规则,再打开Logcat验证是否还会崩溃。

  • 切换JDK环境
    检查Android Studio使用的JDK版本兼容性:

    1. 打开File > Project Structure > SDK Location
    2. 切换到Android Studio自带的JDK(路径一般为安装目录下的jre文件夹)
    3. 或更换为官方推荐的JDK 11/17版本,重启IDE后测试。
  • 排查第三方插件冲突
    按住Shift(Windows/Linux)或Option(macOS)键启动Android Studio,进入安全模式(禁用所有第三方插件)。若此时Logcat正常,再逐个启用插件,定位导致冲突的插件并卸载。

  • 彻底清除旧配置文件
    重装时若未清理旧配置,可能残留问题。删除整个IDE配置文件夹(操作前可备份快捷键、插件列表等重要配置):

    • Windows:C:\Users\<你的用户名>\.AndroidStudio<版本号>
    • macOS:~/Library/Application Support/Google/AndroidStudio<版本号>
    • Linux:~/.AndroidStudio<版本号>
      删除后重新启动Android Studio,重新完成基础配置。

内容的提问来源于stack exchange,提问作者Francisco Diaz de Vivar

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.09 03:22:18