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 Simple Android App (2014) Getting Started with Android Running the Fun Facts Project

Error

Error:(3, 22) compileSdkVersion android-22 requires compiling with JDK 7 <a href="http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html">Download JDK 7</a><br><a href="select.jdk">Select a JDK from the File System</a><br><a href="openFile">Open build.gradle File</a>

Hi! what can i do with these error messages?

2 Answers

I fixed this problem by installing a newer version of the Java Development Kit and restarting Android Studio. You can download JDK 7 from Oracle's website.

mine didn't work still the same, I'm using a macbook pro .