Cannot resolve symbol 'Theme' in styles.xml (Android Studio)

后端 未结 23 2259
半阙折子戏
半阙折子戏 2020-11-27 11:56

Since today, Android Studio can\'t find the AppCompat themes in styles.xml, but for example AppCompatActivity in code does get recognized. My Android Studio version

23条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-27 12:26

    @Daniel Wilson made a comment in one of the answers that solved this issue for me. I wanted to add add as an answer to draw more attention to this solution.

    Updating compileSdkVersion and targetSdkVersion from 26 to 27 (and then of course updating the dependencies) eliminated the errors for me.

提交回复
热议问题