渲染期间引发异常:无法找到操作栏的布局 [英] Exception raised during rendering: Unable to find the layout for Action Bar

查看:22
本文介绍了渲染期间引发异常:无法找到操作栏的布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

刚刚使用 Android Studio 时,我正在编辑器中编辑 XML 文件,但在预览和设计窗口中出现此错误:

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 Studio、我的笔记本电脑和谷歌搜索以获取答案,但我找不到任何东西.有没有人遇到过类似的情况?

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

这篇关于渲染期间引发异常:无法找到操作栏的布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆