在渲染过程中发生异常:无法找到操作栏布局过程中、布局、异常、发生

2023-09-04 03:30:52 作者:作业,我要和你分手

虽然采用了Android工作室我刚才编辑在编辑器中的XML文件,我得到了在preVIEW和设计窗口此错误:

While using Android Studio just now I was editing an XML file in the editor and I got this error in the Preview and Design windows:

 Exception raised during rendering: Unable to find the layout for Action Bar.

我试图重新启动Android的工作室,我的笔记本电脑和谷歌搜索的答案,但我无法找到任何东西。有没有人经历过类似的话?

I've tried restarting Android Studio, my Laptop and Googling for the answer but I can't find anything. Has anybody experienced anything similar?

推荐答案

我有这样那样的错误。在我的Mac,有API 22.如果我选择了它就会出现此错误。所以点击API 21或以下将解决您的问题。

I had this kind of error. On My Mac, there is API 22. If I choose it this error will appear. So clicking on API 21 or below would solve your problem

您可能需要更新您的工具

You probably need to update your tools