Intellij say "can't find ad to go to" in android xml file

When I find the ad in themes_holo.xml(Android system file), Intellij tell me:

can't find ad to go to

Here is the code below:

<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>
+9
source share
5 answers

I had the same problem, here is what fixed for me:

  • close the project in intellij .
  • close intellij .
  • go to the project folder and delete the folder .idea
  • restart intellij and open the project (wait for the indexing to finish) and it will work.
+13
source

, :

  1. option

.

+1

, , . - . XML :

<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"/>

"HardcodeText", , " ", , " , IntelliLang".

XML, Android : editor-Inspections: search xml, : Android-Android Resources Validation, , Unknow Android XML-,

editor-Intentions: XML-Set Namespace , , , IntelliLang. " , ", DTD , , .

0

idea.max.intellisense.filesize = 99999

idea.properties

0

:

  1. go to C: \ Users (your user)
  2. delete the folder .AndroidStudio3.4.

Then launch Android Studio.

If this does not work, first uninstall Android Studio, then repeat the above steps

0
source

All Articles