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 trialTalwinder Singh
1,508 Pointsgradle build finishes with one error
solved this error by changing the gradle build version to 23.0.2 from 25.0.0......just let me know the reason
1 Answer
Seth Kroger
56,413 PointsAndroid build tools from v24 up require Java 8, but you have Java 7 SDK installed. While what you did will work as a quick fix for now, it's best going forward to upgrade so the current versions of build tools will work and you won't be left behind. The easiest way to do that is to open Project Structure (File menu or the icon with a folder and 3 blue squares near the right end of the toolbar). Under SDK Location check "Use embedded JDK)" and click OK. If that doesn't work for you you'll have to manually install the Java 8 SDK and set the JDK location manually. Also do the same with the Default Project Structure under File -> Other Settings in the menu so future projects will be good to go.