Why does Android Studio highlight “Theme” red in styles.xml?

后端 未结 5 903
臣服心动
臣服心动 2021-01-13 02:55

Red highlight means Cannot resolve symbol \'Theme\'

\"enter

<

5条回答
  •  温柔的废话
    2021-01-13 03:39

    Only this worked for me!

    • Close project (File> Close Project)
    • Import / Re-Open project again (NOT from Recent)

    Error should be resolved now.

    If that did not resolve, then try below

    • Open build.gradle, remove appcompact-v7 dependency line and sync.
    • Again add appcompact-v7 dependency and sync.

    Issue must be resolved!

提交回复
热议问题