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

后端 未结 23 2330
半阙折子戏
半阙折子戏 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:27

    I encountered this after updating to Android Studio 3.1.

    None of the other answers listed here worked for me, however when I switched my appcompat support lib version to the latest 28.0.0-alpha1 then back to 27.1.0 that it was on before, it worked.

    Seems the new version of Android Studio lost connection to where the library was synced to and just needed to have it reset.

提交回复
热议问题