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

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

    I encountered same problem like this.Just the difference is I was using Studio 2.2.3. This is what solved my problem:

    In my project level gradle I had:

    classpath 'com.android.tools.build:gradle:2.3.0-alpha2' (which was a result of updating studio)

    which I replaced with: classpath 'com.android.tools.build:gradle:2.2.3'

    I think you should look for a compatible classpath for your gradle configuration.

提交回复
热议问题