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>
The reason IntelliJ couldn't find declarations was that the subprojects were not built. After investigating why subprojects were not built, I found out that using "auto-import" was breaking the subprojects. After importing the project from build. gradle without auto-import, it worked for me.
The solution for me: remember to add an interpreter to the project, it usually says in the bottom right corner if one is set up or not. Just an alternate solution than the others. This happened after reinstalling PyCharm and not fully setting up the ide.
I had the same problem, here is what fixed it for me:
.idea
folder If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With