作者:mobiledu2502895137 | 来源:互联网 | 2023-05-24 16:42
虽然改变的值widget
在properties
标签中,AndroidStudio
不断抛出IndexNotReadyException
.但是在重试几分钟后,错误没有发生.
这是错误日志:
com.intellij.openapi.project.IndexNotReadyException: Please change caller according to com.intellij.openapi.project.IndexNotReadyException documentation
at com.intellij.util.indexing.FileBasedIndexImpl.handleDumbMode(FileBasedIndexImpl.java:856)
at com.intellij.util.indexing.FileBasedIndexImpl.ensureUpToDate(FileBasedIndexImpl.java:805)
at com.intellij.util.indexing.FileBasedIndexImpl.processExceptions(FileBasedIndexImpl.java:930)
at com.intellij.util.indexing.FileBasedIndexImpl.collectFileIdsContainingAllKeys(FileBasedIndexImpl.java:1190)
at com.intellij.util.indexing.FileBasedIndexImpl.processFilesContainingAllKeys(FileBasedIndexImpl.java:1018)
at com.intellij.psi.impl.search.PsiSearchHelperImpl$26.compute(PsiSearchHelperImpl.java:1096)
at com.intellij.psi.impl.search.PsiSearchHelperImpl$26.compute(PsiSearchHelperImpl.java:1093)
我已经更新了AndroidStudio
最新版本.但仍然会发生错误.任何修复或解决?
1> Gokul Nath K..:
由于后台indexing
进程而发生.
当IDE正在建立索引时,如果我们尝试更改属性选项卡中的值,则IndexNotReadyException
抛出.
等到索引完成.
希望Google AndroidStudio
在下一个版本中修复此问题!
这也发生在IntelliJ IDEA IDE中,这是JetBrains的产品,所以,我想,JetBrains负责处理这个bug.
2.3.3,还在这里
2.3.1还在那里
nope仍然错误IndexNotReadyException在工作室1.5.1中找到
2> 小智..:
文件 - >使缓存和重新启动无效
这将停止旧的索引过程并开始一个新的索引过程.
之后等待索引,并让该项目构建.
3> 小智..:
我遇到了同样的问题并根据此找到了解决方案,我已将API级别22更改为21,问题解决了.
XML布局的API级别设置为**自动选择最佳**,即API 22
我将此API 22更改为API 21:
并删除了例外.
希望这有帮助.谢谢