Help us understand the problem. What is going on with this article?

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

More than 1 year has passed since last update.

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.)
 ↓
プロジェクトを選択

参考

suke
アイコン画像は自分で描きました。 AndroidとWeb系ができます。 iOSと人工知能もできるようになりたい! GitHub: https://github.com/suke-shun-kato
https://play.google.com/store/apps/developer?id=Good+I+Story
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした