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 Setting Up an Android Development Environment for Windows

I already have JDK 8 installed, will that be a problem?

I am requested to download Java (JDK 7, 32 bit) but I already have Java SE Development Kit 8 update 45 downloaded. And I am downloading the Android Studio, as given in the link... Will this be a problem?

Michael Riehl
Michael Riehl
725 Points

Short answer: JDK will work just fine.

When I got started with this lesson not long ago, I did not use any of the provided download links. I decided to go out and get the newest versions of all the software. So far, I have been able to get along just fine with very little noticeable difference.

2 Answers

You can definitely use JDK 8! When I installed Android Studio it gave an error telling me to download JDK 7, but under the link to download v.7 was another link to manually set the location of Java on my machine. I'm afraid I don't remember the exact wording but it was definitely an available option. From there I was able to set the install directory for Java.

Thanks for your replies.. so here's what I had to do for my Win 7 32 bit with originally installed JDK 8.1 and Android 4.4.2.

Initially I had JDK 8.1 installed, then downloaded Android from this link. While building the app, I got an error (I completely forgot to capture the screenshot) that wouldn't let me go any further. As far as I remember it did mention about some version mismatch. So then I downloaded the JDK 7, installed it and set the environment variable (JAVA_HOME) pointing to the new jdk path. I tried running my app again, I didn't get the previous error but i got another error that said that my javaHome was pointing to the previous Java 8.1 location. So then I had to navigate to File -> Project Structure and change the javaHome path so as to point it to the recent jdk 7 that was installed.

After this my application had run fine. Hope it'll be of some help to anyone facing similar issues.