Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

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

like image 209
Marche101 Avatar asked Apr 09 '15 10:04

Marche101


3 Answers

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

enter image description here

You probably need to update your tools

like image 83
Glenn Avatar answered Nov 02 '22 23:11

Glenn


You can solve this problem by two ways

Change API from the tab, Try one of them from the available or Select PICK UP BEST or change your minimum sdk

Select API from the available

Change the Theme if first solution not work

enter image description here

like image 7
Adiii Avatar answered Nov 03 '22 01:11

Adiii


Those using Eclipse might try to choose Theme.DeviceDefault to eliminate the exception. Update: as per comments this works for Android Studio also. enter image description here

like image 14
Sergey Avatar answered Nov 03 '22 01:11

Sergey