Android studio 报错Rendering Problems The following classes could not be instantiated:

Rendering Problems The following classes could not be instantiated:
- android.support.v7.widget.AppCompatTextView (Open Class, Show Exception, Clear Cache)
 Tip: Use View.isInEditMode() in your custom views to skip code or show sample data when shown in the IDE.  If this is an unexpected error you can also try to build the project, then manually refresh the layout.

百度翻译

呈现问题:下列类不能实例化:

-yANDROID.Spv.V7.WigGET.AppCupTeExVIEW(open类,显示异常,清除缓存)
提示:在IDE中使用Visual.IsIdEndoMoDE()来跳过代码或显示示例数据。如果这是一个意外的错误,您也可以尝试构建项目,然后手动刷新布局。

Android studio 报错Rendering Problems The following classes could not be instantiated:


在工程下src-main-res-values-style.xml

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

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

加一个Base,就搞定了