Android Studio常见错误之:Rendering Problems/The following classes could not be instantiated
2015-05-27 04:10
417 查看
被这个问题折磨的差点就要对Android Studio说拜拜了。好在强迫症又犯了,最终把问题解决。首先详细描述一下遇到的问题:在Android Studio Project中新建module时,第一个module一切正常,但建立第二个module打开XM;布局文件时出错。出错代码如下:Rendering ProblemsThe following classes could not be instantiatedandroid.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
- AndroidStudio xml不显示内容出现:Rendering Problems The following classes could not be instantiated
- 关于解决android studio的"rendering problems The following classes could not be found android.support.v7
- Rendering Problems The following classes could not be found
- 【Android studio】Rendering Problems:classes could not be instantiated 解决方法
- 【Android studio】Rendering Problems:classes could not be instantiated 解决方法
- [Android] 升级了新的android studio之后 发生如下的报错,The following classes could not be instantiated:
- The following classes could not be instantiated
- 安卓错误提示:The following classes could not be found: - LinerLayout
- The following classes could not be instantiated: android.support.v7.widget.RecyclerView v7中找不到的终极方法
- 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
- 加载百度地图MapView出现The following classes could not be instantiated
- 解决Android Studio默认AppTheme主题找不到的问题 The following classes could not be found: - android.support.v
- The following classes could not be instantiated: - android.support.v7.widget.Toolbar 解决方法
- 解决方案-Rendering Problems-The following classes could not be instantiated:
- The following classes could not be instantiated: android.support.v7.widget.ActionBarOverLayLayout
- [置顶] 【Android】AndroidStudio开发工具布局xml文件不显示视图。提示:The following classes could not be instantiated:
- [Android Exception A] – 1-The following classes could not be instantiated