intellij say "cannot find declaration to go to" in android xml file [duplicate]
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.
Please try "File --> Invalidate Caches..." and restart IDE. It worked for me. Android Studio v3.6.2
I had the same problem, I used following steps:
- Go to File
- Select Power save mode option
- Disable the power save mode
This is worked for me and for suggestion.