简体   繁体   English

在尝试查看活动预览时,我在最新的android工作室中出现渲染错误

[英]I am getting rendering error in the latest android studio when trying to view the preview of an activity

Rendering Problems The following classes could not be instantiated: 呈现问题无法实例化以下类:

android.support.v7.internal.widget.ActionBarOverlayLayout (Open Class, Show Exception, Clear Cache) android.support.v7.internal.widget.ActionBarOverlayLayout(Open Class,Show Exception,Clear Cache)

What can be done to solve this? 可以做些什么来解决这个问题? I can't get any preview for my XML coding. 我无法预览XML编码。

我认为这不是最终解决方案,但是将设计视图中的Theme从基础project theme更改为其他任何内容都可以构建它。

从xml视图,检查你的右侧,有一个选项为“预览”

It happens to me too, 它也发生在我身上,

the only ways I found to fix this issue is: at the top of Designer window 我发现解决此问题的唯一方法是:在Designer窗口的顶部

  1. Change the theme. 改变主题。

OR 要么

  1. Change the API to 21 instead of 22. 将API更改为21而不是22。

the second choice is better because you will still able to see the same theme from API 22. 第二种选择更好,因为您仍然可以从API 22中看到相同的主题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么我尝试在 android studio 中打开新活动时出错 - why am i getting error when trying to open new activity in android studio 我正在使用 Android Studio 3.2v,当我运行 main_activity 时出现此错误 - i am using Android Studio 3.2v and i am getting this error when i run my main_activity 我正在使用android studio 2.1.2,并尝试获取最新的Facebook SDK,gradle似乎有错误 - I am using android studio 2.1.2 and am trying to get the latest facebook sdk, gradle seem to have an error 我在android studio的Image View中遇到以下错误 - I am getting the following error in Image View in android studio 有什么办法可以在不同的 pc 上处理 android studio 的同一个项目,当我尝试这个时出现错误? - Is there any way to work on same project of android studio on diffrent pc's when i am trying this i am getting an error? 尝试导入现有的android studio项目时出现以下错误,对此有什么解决方案吗? - I am getting the following error when I am trying to import an existing android studio project.Is there any solution for this? Android Studio Asset Studio 预览渲染错误 - Android Studio Asset Studio Preview Rendering Error 尝试从父级活动访问片段视图时,为什么会得到空值? - Why am I getting a null value when trying to access a fragment view from the parent activity? Android字体渲染,我的视图非常糟糕 - Android font rendering, i am getting very bad view 我在android studio上遇到了奇怪的错误 - I am getting strange error on android studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM