(转) Android Studio升级到3.0版本后布局不能预览解决方案

原地址:https://blog.csdn.net/sinat_35241409/article/details/78390450

Studio3.0稳定版发布了,果断选择了升级,然后升级后项目中的布局不能预览了,我去,什么鬼赶紧问下度娘,找了好久,没合适的答案,但是功夫不负有心人,今天早上直接复制Studio上报的错误(英文版)进行搜索,完美解决,现在分享出来给大家。

1、错误提示  Failed to instantiate one or more class


2、解决方案

将style中  进行如下改变

变化前

变化后

3、完美解决,看下预览

参考:https://stackoverflow.com/questions/26575815/the-following-classes-could-not-be-instantiated-android-support-v7-widget-too

猜你喜欢

转载自blog.csdn.net/duyiqun/article/details/81299703