在渲染过程中发生异常:action_bar [英] Exception raised during rendering: action_bar
问题描述
当我创建机器人工作室它是不会放弃任何问题,但我在看activity_main.xml设计它是一个新的项目表明我:渲染问题异常时渲染提出:action_bar。 我知道如何解决这个问题,只列出这个问题<一href="http://stackoverflow.com/questions/29034476/android-studio-sdk-version-22-exception-during-rendering-action-bar">android在渲染过程中的工作室SDK版本22的异常:action_bar
不过,我想知道为什么会这样,有人知道吗?
动作条已经去precated,最好使用工具栏,它给了很多的功能,以及作为API 21的动作条已经通过工具栏,其中因为你收到此错误更换,
如果你提到你的清单文件要求maxSDK小于21 API,你不会得到这个错误。
但还是去用工具栏,它使您能够做的事情,你可以用一个视图做
When I create a new project on android studio it is not giving any problem but I looking at the activity_main.xml design it is shows me this: "Rendering Problems Exception raised during rendering: action_bar". I know how fix this problem,just list this issue android studio sdk version 22 exception during rendering: action_bar
But I want to know why this happens,some people know?
ActionBar has been deprecated, it's better to use "Toolbar" and it gives a lot of features as well, as of API 21 ActionBar has been replaced by Toolbar because of which you are getting this error,
if you mention in your manifest file maxSDK required less than API 21 you will not get this error.
But still go with ToolBar it enables you to do things which you can do with a view
这篇关于在渲染过程中发生异常:action_bar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!