的IntelliJ说"找不到声明去"在android系统的XML文件 [英] intellij say "cannot find declaration to go to" in android xml file

查看:748
本文介绍了的IntelliJ说"找不到声明去"在android系统的XML文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我找到 themes_holo.xml 的声明(一款Android系统的文件),的IntelliJ告诉我:


  

找不到声明去


下面是提到的code:

 <样式名称=Theme.Holo.Light.Dialog>
    <项目名称=窗框> @空< /项目>
    <项目名称=windowTitleStyle> @风格/ DialogWindowTitle.Holo.Light< /项目>
    ...
    <! - 我旺找到preferencePanel.Dialog声明 - >
    <项目名称=preferencePanelStyle> @风格/ preferencePanel.Dialog< /项目>
< /风格>


解决方案

我有同样的问题,这里是固定的,对我来说:


  1. 关闭项目中的的IntelliJ

  2. 关闭的IntelliJ

  3. 到项目文件夹,删除 .idea 文件夹

  4. 重新启动的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:

  1. close the project in intellij.
  2. close intellij.
  3. go to the project folder and delete the .idea folder
  4. restart intellij and open the project (wait for the indexing to finish) and it would work.

这篇关于的IntelliJ说&QUOT;找不到声明去&QUOT;在android系统的XML文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆