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

Android Preview not working

So instead of the preview coming up, this is what it says in the bottom.

This version of the rendering library is more recent than your version of Android Studio. Please update Android Studio

1 Answer

Hello,

Assuming you are currently using the most recent version of Android Studio(if not, try updating that), the issue is likely that you installed API 22 for Android M or possibly API 22 for Lollipop. This is causing a few issues for those trying to use it. I would recommend installing and using API 21 for now to avoid any confusion. Then, within Android Studio, set your API level for the preview to API 21. This stackoverflow post has an image of the area that I'm referring to change. Please let us know if this helps or if you need more assistance.

Worked! Thank you!