AndroidStudio xml不显示内容出现:Rendering Problems The following classes could not be instantiated
来源:互联网 发布:文明4汉化补丁mac 编辑:程序博客网 时间:2024/06/08 10:42
使用AndroidStudio在写布局文件预览时出现下面情况:
Rendering Problems The following classes could not be instantiated:- android.support.v7.app.WindowDecorActionBar (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. Exception Details java.lang.NullPointerException at android.support.v7.app.WindowDecorActionBar.getDecorToolbar(WindowDecorActionBar.java:246) at android.support.v7.app.WindowDecorActionBar.init(WindowDecorActionBar.java:202) at android.support.v7.app.WindowDecorActionBar.<init>(WindowDecorActionBar.java:194) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at com.android.layoutlib.bridge.bars.AppCompatActionBar.<init>(AppCompatActionBar.java:89) at com.android.layoutlib.bridge.impl.Layout.createActionBar(Layout.java:238) at com.android.layoutlib.bridge.impl.Layout.<init>(Layout.java:150) Copy stack to clipboard Failed to find the style corresponding to the id 2130772069 (22 similar errors not shown) Failed to load AppCompat ActionBar with unknown error. (3 similar errors not shown) Tip: Try to refresh the layout.
出现这种情况,修改下style,然后clean一下,如果还是不行再invalidate cache/restart。
将parent修改如下添加一个Base属性:
操作了之后再进行预览看看。
0 0
- AndroidStudio xml不显示内容出现:Rendering Problems The following classes could not be instantiated
- 解决方案-Rendering Problems-The following classes could not be instantiated:
- android Rendering Problems :The following classes could not be instantiated
- Android Studio布局预览出现rendering problems,the following classes could not be instantiated情况解决办法
- 【Android】AndroidStudio开发工具布局xml文件不显示视图。提示:The following classes could not be instantiated:
- Android Studio常见错误之:Rendering Problems/The following classes could not be instantiated
- Android Studio 编译布局文件错误之:Rendering Problems The following classes could not be instantiated
- [Android小知识]Rendering Problems The following classes could not be instantiated解决一览
- Android Studio常见错误之:Rendering Problems/The following classes could not be instantiated
- Android Studio常见错误之:Rendering Problems/The following classes could not be instantiated
- Rendering Problems The following classes could not be found
- Androidstudio预览布局文件时弹出一些Rendering Problems:classes could not be instantiated
- 【Android studio】Rendering Problems:classes could not be instantiated 解决方法
- 【Android studio】Rendering Problems:classes could not be instantiated 解决方法
- Android The following classes could not be instantiated
- 加载百度地图MapView出现The following classes could not be instantiated
- 关于解决android studio的"rendering problems The following classes could not be found android.support.v7
- The following classes could not be instantiated: android.support.v7.widget.ActionBarOverLayLayout
- 基于qt和opencv3实现机器学习之:kmeans
- jQuery HTML操作学习笔记
- $http.post发的数据,后台取不到
- 《Java虚拟机原理图解》4.JVM机器指令集
- Linux 中 grep指令
- AndroidStudio xml不显示内容出现:Rendering Problems The following classes could not be instantiated
- 2017微软预科生计划面试(三面全)
- Perfect-Swift Mac环境下的常用指令
- java学习 十二、关键字final
- 大话设计模式学习笔记(3,4,5)----单一职责,开放-封闭,依赖倒转,里氏代换原则
- Innodb_large_prefix
- java mybatis + oracle如何配置自增ID
- spring-Cloud maven build报错:Non-parseable POM ---spring-cloud-dependencies- Brixton.RELEASE.pom
- json_decode参数