Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exception raised during rendering: action_bar

Tags:

android

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?

like image 738
adsion Avatar asked Mar 23 '15 03:03

adsion


1 Answers

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

like image 162
Pankaj Nimgade Avatar answered Nov 15 '22 07:11

Pankaj Nimgade