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

Carl Sergile
Carl Sergile
16,570 Points

Getting this message: Buildtools 24.0.1 requires Java 1.8 or above. Current JDK version is 1.6.

Hey so I am trying to eliminate all these errors I am getting without even doing much. Says I need to install JDK version 1.6. Where do I get this version? I went to the Oracle site downloaded JDK 8 Update 101 and JDK 7 Update 79 a bit earlier and still getting the message. I should add that I am using a mac and downloaded the mac version of it. How do I check which version Android Studio is using? Also I think I should also add...I downloaded Android Studio before I downloaded the any JDK.

Carl Sergile
Carl Sergile
16,570 Points

I don't think I can move on without knowing what to do.....The app isn't showing up because it isn't getting built properly.

5 Answers

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Try this Stack Overflow thread. I know it's citing a different version, but the issue and the solution is the same. There is also a more detailed Android Studio Project site

Hopefully these help and you can move forward. :)

:dizzy:

Carl Sergile
Carl Sergile
16,570 Points

I found out the answer just by copying and pasting and searching it on google. In Android Studio: Go to File -> Project Structure and switch the JDK Location fieldset to JDK 1.8 instead of the current one that it is on.

Source: https://qnalist.com/questions/6559133/android-developers-windows-10-android-studio-2-1-3-error-buildtools-24-0-1-requires-java-1-8-or-above-current-jdk-version-is-1-7

Misty McCray
Misty McCray
7,225 Points

It is looking for the Java SE Development Kit 8. I downloaded and installed Java SE Development Kit 8u102 and it resolved this issue for me. http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Hello all,

I'm having a similar issue. I've tried multiple solutions posted here and none of them seem to work. I'm able to compile and use the emulator, however, I still don't have drag and drop capabilities, since it says "Android Nougat requires the IDE to be running with Java 1.8 or later".

Anyone run into this issue?

Jason Anders
Jason Anders
Treehouse Moderator 145,860 Points

Hey Edward Mosley I haven't. But you'd be best posting this as a new question in the Community. Ask here, your question is only visible to myself and anyone who has commented on the post, so two people. Once in the community, click "Ask" and select Android as the topic. Then just follow the prompts.

This will expose your question to all of the Students who frequent the Community, and will give a very good shot at getting an answer.

Hope you get it solved quickly. :) :dizzy:

Appreciate is Jason, thanks!