问题描述:一个项目一打开xml布局文件,就会出现Rendering Problems,如下:

Rendering Problems The following classes could not be instantiated:

解决办法:Theme主题方面的问题:

将原来的主题

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

改为:

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

即可。

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-27
  • 2022-12-23
猜你喜欢
  • 2021-05-17
  • 2022-12-23
  • 2021-04-03
  • 2022-12-23
  • 2021-08-23
  • 2022-12-23
  • 2021-10-04
相关资源
相似解决方案