Android Studio常见错误之:Rendering Problems/The following classes could not be instantiated
来源:互联网 发布:html5与webgl编程 pdf 编辑:程序博客网 时间:2024/06/06 16:47
被这个问题折磨的差点就要对Android Studio说拜拜了。好在强迫症又犯了,最终把问题解决。
首先详细描述一下遇到的问题:
在Android Studio Project中新建module时,第一个module一切正常,但建立第二个module打开XM;布局文件时出错。出错代码如下:
Rendering Problems
The following classes could not be instantiated
android.support.v7.internal.widget.ActionBarOverlayLayout (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 Exception Details java.lang.NoClassDefFoundError: Could not initialize class android.support.v7.internal.widget.ActionBarOverlayLayout at java.lang.reflect.Constructor.newInstance at android.view.LayoutInflater.inflate(LayoutInflater.java:482) at android.view.LayoutInflater.inflate(LayoutInflater.java:414) at com.android.layoutlib.bridge.bars.BridgeActionBar.<init>(BridgeActionBar.java:84) at com.android.layoutlib.bridge.bars.AppCompatActionBar.<init>(AppCompatActionBar.java:56)
问题原因:不祥。
解决办法:
打开es/values/目录下styles.xml文件。
把:<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
修改为: <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
也就是添加一个单词【Base】,问题解决。
=========================================================================
--2015年5月27日04:27:53
--写于宿舍
--csdn编辑器不好用
--当百度给不了解决方案时,试试谷歌,谷歌总会给技术人员带来惊喜。
- Android Studio常见错误之: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
- 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情况解决办法
- 解决方案-Rendering Problems-The following classes could not be instantiated:
- [Android小知识]Rendering Problems The following classes could not be instantiated解决一览
- 【Android studio】Rendering Problems:classes could not be instantiated 解决方法
- 【Android studio】Rendering Problems:classes could not be instantiated 解决方法
- AndroidStudio xml不显示内容出现:Rendering Problems The following classes could not be instantiated
- Rendering Problems The following classes could not be found
- 关于解决android studio的"rendering problems The following classes could not be found android.support.v7
- Android The following classes could not be instantiated
- The following classes could not be instantiated: android.support.v7.widget.ActionBarOverLayLayout
- The following classes could not be instantiated: - android.support.v7.widget.Toolbar 解决方法
- The following classes could not be instantiated: - android.support.v7.internal.widget.ActionBarOverl
- The following classes could not be instantiated: - android.support.v7.widget.Toolbar 解决办法
- POJ 3469 解题报告
- 欢迎使用CSDN-markdown编辑器
- 位运算的应用
- applet2
- 发布轻开平台移动App服务器
- Android Studio常见错误之:Rendering Problems/The following classes could not be instantiated
- vertica
- Leetcode NO.216 Combination Sum III
- 实现哈希表
- 2015年ACM上海大都会邀请赛总结
- 147Insertion Sort List
- Operating System -- Process Description And Control
- 安卓手机安装gcc,编译c/c++
- Java多线程及其使用(一)