The following classes could not be instantiated:
- android.support.v7.widget.ActionBarContainer (Open Class, Show Exception, Clear Cache)
- android.support.v7.widget.AppCompatEditText (Open Class, Show Exception, Clear Cache)
- android.support.v7.widget.ActionBarContextView (Open Class, Show Exception, Clear Cache)
- android.support.v7.app.WindowDecorActionBar (Open Class, Show Exception, Clear Cache)

Android studio不能在布局预览的问题

解决方案:打开res -> values -> Styles.xml

<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">

修改为

<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">

好了。

相关文章:

  • 2022-12-23
  • 2022-02-24
  • 2021-08-08
  • 2021-10-13
  • 2021-05-19
  • 2021-10-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-21
  • 2021-10-04
  • 2021-11-13
  • 2021-10-23
  • 2021-07-07
  • 2022-12-23
相关资源
相似解决方案