Phil
Phil

Reputation: 4069

Android Studio: Unresolved symbol "Theme" in styles.xml

I am having trouble with Android Studio throwing an error in my styles.xml about unresolved symbol "Theme". The error is throw where I have my AppBaseTheme defined as below.

<style name="AppBaseTheme" parent="Theme.AppCompat.NoActionBar">

This only started after I upgrade from com.android.tools.build:gradle:3.1.3 to 3.1.4. If I revert back to 3.1.3, it works but it then complains and says i should upgrade to 3.1.4.

This one works...

classpath 'com.android.tools.build:gradle:3.1.3'

This one does NOT work

classpath 'com.android.tools.build:gradle:3.1.4'

What should I do? I've tried restarting, doing an Invalidate Cache and Restart, etc. Nothing seems to work.

Upvotes: 1

Views: 262

Answers (1)

trocchietto
trocchietto

Reputation: 2617

Did you try to update the compileSDK Version? According to this post the reason can be both in the compileSDK or that the library is out of sync, or even you have to cancel .idea, or the google repository that is not set.

Upvotes: 1

Related Questions