Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build a Self-Destructing Message Android App Starting the App Adding the Login Screen

Stephen Little
Stephen Little
8,312 Points

Preview not showing rendering error

I can not preview my activity, I get a rendering error of Exception Raised during rendering: action_bar. Any idea how I fix this?

1 Answer

Johan Prieto
Johan Prieto
6,513 Points

Hey there, you should change your API to 21 and see if it renders. It should be the little android above or on the side of where your preview should be with the number 22 on it. I hope this helps, let me know how it goes!

Stephen Little
Stephen Little
8,312 Points

Yip, that's what I had to do to get it to work. I have a feeling that this part of the track is going to drive me a little nutty. Why they would spend the first three apps in Android studio's and then switch to the outdated Eclipse has be baffled..

Cheers! Stephen