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

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

    I have had the same problem. The only solution that worked for me was to manually delete the support libraries in file system and sync the project to let Android Studio download them again.

    Steps:

    1. Go to your project folder in File system
    2. Go to .idea\libraries
    3. Delete all the Gradle__com_android_support_****.xml files
    4. Open Android Studio
    5. Select File > Sync with File System
    6. Once that is done, Select File > Sync Project with Gradle Files
    7. Build Project

    And now your error should be gone!!!

提交回复
热议问题