Missing styles. Is the correct theme chosen for this layout?

后端 未结 21 1241
慢半拍i
慢半拍i 2020-11-28 19:27

Missing styles. Is the correct theme chosen for this layout? Use the Theme combo box above the layout to choose a different layout, or fix the theme style ref

相关标签:
21条回答
  • 2020-11-28 20:07

    I had the same problem and found it was the Theme dropdown at the top of the graphical layout editor. I changed from Holo to Theme and the layout displayed and error disappeared.

    0 讨论(0)
  • 2020-11-28 20:07

    Just need click button 'AppTheme', and choose 'Manifest Themes'. It works in most cases.

    0 讨论(0)
  • 2020-11-28 20:08

    I solved it by changing "classpath" in "dependencies" in build.gradles.

    Just change:

    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.0-alpha2'
    

    or something like that to:

    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.3'
    
    0 讨论(0)
  • 2020-11-28 20:09

    I had the same problem using Android Studio 1.5.1.

    This was solved by using the Android SDK Manager and updating Android Support Library, as well as Local Maven repository for Support Libraries.

    After updating the SDK and restarting Android Studio, the problem was rectified.

    Hope this helps anyone who has the same problem after trying other suggestions.

    0 讨论(0)
  • 2020-11-28 20:09

    With reference to the answer provided by @Benno: Instead of changing to a specific theme, you can simply choose 'DeviceDefault' from the theme menu. This should choose the theme most compatible with the emulated device.

    0 讨论(0)
  • 2020-11-28 20:12

    This is because you select not a theme of your project. Try to do next:

    0 讨论(0)
提交回复
热议问题