第一次使用android studio3.1.2,在预览界面没有显示,并且报错render problem:Failed to load AppComcat ActionBar with unknown error,如下图
在网上查到的方法是更改style.xml 文件中的style标签的parent属性值更改为
parent="Base.Theme.AppCompat.Light.DarkActionBar"
更改前截图:
更改后截图:
亲测有效!!
预览图:
第一次使用android studio3.1.2,在预览界面没有显示,并且报错render problem:Failed to load AppComcat ActionBar with unknown error,如下图
在网上查到的方法是更改style.xml 文件中的style标签的parent属性值更改为
parent="Base.Theme.AppCompat.Light.DarkActionBar"
更改前截图:
更改后截图:
亲测有效!!
预览图: