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
相关产品推荐
相关产品推荐

