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

Android Studio移动文件至其他包时索引损坏的解决求助

Android Studio移动文件到其他包时触发索引损坏错误

在Android Studio中将文件移动到其他包时,出现以下错误:

Error
Index corruption detected. Please retry the refactoring - indexes will be rebuilt automatically

错误演示动图:
错误演示动图

已尝试以下所有解决方案,但均无效:

  • 执行Invalidate caches/restart
  • 重启Mac
  • 执行Build clean

相关资料提到该问题可能由内存不足导致,但我使用的是配备36GB内存+512GB存储的MacBook Pro M3 pro,硬件资源充足。

Android Studio及插件版本

Android Studio Iguana | 2023.2.1
Build #AI-232.10227.8.2321.11479570, built on February 21, 2024
Runtime version: 17.0.9+0-17.0.9b1087.7-11185874 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 14.3.1
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 12
Metal Rendering is ON
Registry:
    debugger.new.tool.window.layout=true
    ide.experimental.ui=true

Non-Bundled Plugins:
    Dart (232.10286)
    wu.seal.tool.jsontokotlin (3.7.4)
    com.wakatime.intellij.plugin (14.3.11)
    org.norbye.tor.kdocformatter (1.6.2)
    com.jetbrains.kmm (0.8.2(232)-20)
    com.squareup.sqldelight (2.0.1)
    com.developerphil.adbidea (1.6.13)
    com.github.copilot (1.4.19.4986)
    io.flutter (78.0.2)

存储情况

存储情况截图

设备信息

设备信息截图

补充说明

已按照指引彻底卸载并重装Android Studio,但该错误仍持续出现。

内容的提问来源于stack exchange,提问作者Pierre Vieira

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.28 08:30:23