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 trialrahul singh
Courses Plus Student 40 PointsError:Buildtools 24.0.1 requires Java 1.8 or above. Current JDK version is 1.7.
Error:Buildtools 24.0.1 requires Java 1.8 or above. Current JDK version is 1.7.
that error is comming at down side
and upper side
"Gradle project sync completed with some errors Open the messages " is showing
2 Answers
Jonathan Nyakunhuwa
5,810 PointsHie Rahul. Head down to java sdk 1.8 download page: javase/downloads/jdk8-downloads-2133151.html then download and install the sdk, that should solve your problem.
Jonathan Nyakunhuwa
5,810 PointsWhat's the actual error are you getting?
Tony Lawrence
3,056 PointsMy error was this: "Error:Buildtools 24.0.1 requires Java 1.8 or above. Current JDK version is 1.7." Found in the messages for the Gradle Sync.
However, I figured out the problem on my end. First, as you recommended, install the Java sdk 1.8 through link: javase/downloads/jdk8-downloads-2133151.html.
After the java 1.8 is installed, on the Android Studios go to File>Project Structures...a window will pop up. Under the "JDK location:" select the "..." tab. From there, you can select jdk1.8.0_101 within the Java folder.
Hope this solution will solve your problem Rahul and Jonathan.
Tony Lawrence
3,056 PointsTony Lawrence
3,056 PointsHi there,
I installed java sdk 1.8, but the Android Studio states that the Gradle Script is still completed with some errors, even after closing and reopening the studio, the issue is still not resolved.