I already met this problem yesterday,but it isn`t absolutely similar to yours, and I searched nothing for help.Finally I resoved this by myself.
Here is my XML file:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:background="#ff0d17ff"
tools:ignore="HardcodedText"
tools:context=".MainActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world"
android:background="#ff0d17ff"/>
When I try to click the word "HardcodeText", it tells me "cannot declaration to go to", and it tells me that "checks references injected by IntelliLang plugin".
The problem comes from the XML settings,here`s my Android studio settings
find this:
editor-Inspections:searching xml,and you find this:Android-Android Resources Validation ,check it,and you will find Unknow Android XML attribute,check it
editor-Intentions:find XML-Set Namespace Prefix to empty,check this
there will no warning line tell you checks references injected by IntelliLang plugin.and "cannot declaration to go to" because it quotes the official DTD or other thing,just ignore it if there is no warning line.