LoginSignup
4
6

More than 5 years have passed since last update.

Android Studioをアップデートしてstyles.xmlやレイアウトファイルに「cannot resolve symbol theme」と出たときの解決方法

Last updated at Posted at 2018-05-07

Android Studioをアップデートしたときに、「styles.xml」や「レイアウトファイル」の「Theme」「ThemeOverlay」「?attr/xxx」などに
cannot resolve symbol themeというエラーメッセージが出る場合の改善方法です

原因

どうやら原因は「Gradle」か「android plugin for Gradle」をアップデートしたのが原因っぽい(詳しくは分からない)

解決方法

プロジェクトを閉じて再度インポートする

プロジェクトを閉じる

File
 ↓
Close Project

再度importをする

閉じた直後の画面で↓を選択
Import project (Gradle, Eclipse ADT, etc.)
 ↓
プロジェクトを選択

参考

4
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
6