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) Coding the Fun Facts Using Conditionals (if Statements)

Tati Belikova
Tati Belikova
14,117 Points

Problem with previewing the Fun facts app

Android Studio wont allow me to run the preview of the app it shows "Warning:android/content/IntentSender.class(android/content:IntentSender.class): major version 51 is newer than 50, the highest major version supported by this compiler." in Gradle Build tab,

and

"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> " in Gradle Sync.

How to fix it? ¯(°_o)/¯