的IntelliJ说"找不到声明去"在android系统的XML文件 [英] intellij say "cannot find declaration to go to" in android xml file
本文介绍了的IntelliJ说"找不到声明去"在android系统的XML文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我找到 themes_holo.xml
的声明(一款Android系统的文件),的IntelliJ告诉我:
找不到声明去
块引用>下面是提到的code:
<样式名称=Theme.Holo.Light.Dialog>
<项目名称=窗框> @空< /项目>
<项目名称=windowTitleStyle> @风格/ DialogWindowTitle.Holo.Light< /项目>
...
<! - 我旺找到preferencePanel.Dialog声明 - >
<项目名称=preferencePanelStyle> @风格/ preferencePanel.Dialog< /项目>
< /风格>
解决方案我有同样的问题,这里是固定的,对我来说:
- 关闭项目中的的IntelliJ
- 关闭的IntelliJ
- 到项目文件夹,删除
.idea
文件夹- 重新启动的IntelliJ 并打开项目(等待索引完成),它是可行的。
When I find the declaration in
themes_holo.xml
(a Android system's file), Intellij tell me :cannot find declaration to go to
Here is the code mentioned:
<style name="Theme.Holo.Light.Dialog"> <item name="windowFrame">@null</item> <item name="windowTitleStyle">@style/DialogWindowTitle.Holo.Light</item> ... <!-- I wang to find declaration of PreferencePanel.Dialog --> <item name="preferencePanelStyle">@style/PreferencePanel.Dialog</item> </style>
解决方案I had the same problem, here is what fixed it for me:
- close the project in intellij.
- close intellij.
- go to the project folder and delete the
.idea
folder- restart intellij and open the project (wait for the indexing to finish) and it would work.
这篇关于的IntelliJ说&QUOT;找不到声明去&QUOT;在android系统的XML文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文