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 Getting Started with Android A Brief Introduction to Android Tools

Android Studio setup cant find the jdk?

I dont understand what is happening. i downloaded Java SE Development Kit 7u79, I "set an environment variable indicating the correct location", and it says " sorry we still could not locate a valid jdk, which we need to proceed".

the environment value is C:\Program Files\jdk-7u79-windows-x64.exe and the jdk is in C:\Program Files

what is wrong? what exactly do i enter so that the setup can locate the jdk? i enter the envirnment value where is says "browse". help me. thank you.

ok so i spent a good amount of time on this and i think i finally got it installed. all looks about right except 1 detail...the haxm installer...im not sure eveything with that area of the download is fine. how would i check? how would i know if its all working properly? like i said everything appears fine and i cant notice any obvious disadvantages. thanks again for the help, im heavily medicated and this stuff is a real challenge.

I'm certain i got it now. Thanks for taking the time to help out i really appreciate it

3 Answers

Its difficult to explain every step here First install the jdk and set the Enviroment path just follow the instructions of the official installations guide https://docs.oracle.com/javase/8/docs/technotes/guides/install/windows_jdk_install.html#A1097936

Like in most Java IDEs (Eclipse/Netbeans/IDEA) you have to set the location of the JDK in your project settings. Or at the beginning when you create the project, File->Other Settings->Default Project Structure->SDKs

My computer doesn't have that.

... Every version of Android studio has that look here http://developer.android.com/tools/help/project-mgmt.html

How to you set the enviroment variable? (names)

jdk-7u79-windows-x64.exe ??? this is just a setup file?

If youll be patient with me..im extremely new to all of this and you just helped me realize some things. First of all how do i access the project settings? and i have to setup the jdk? i think ive misunderstood what that is... how do i set it up if i dont have the right program to? also what would i set as the environment variable? edit: i didnt "create" any project it just starts downloading and doesnt ask me anything

Hey did you donwload haxm from the Intel website? Try to download the latest version of haxm there There is also a installation guide https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager

I take back what I said.`I thought the hxam was installed because it said "installed". I know now why that was wrong. but anyway its saying its not a valid windows program and wont run it. I've tried the hxam installation from the sdk manager, and the link you provided they both give me the same respone and will not install. How do I get windows to install the hxam?

Go to your control panel -> Programs and Features -> Turn Window Features on and off -> now activate the Feature "Hyper-V"

Then you should be able to install it

Im sorry could you put that in xp terms? I'm having a hard time locating window feature and hyper v

Ian Tan
Ian Tan
359 Points

I am having errors "environment variable" - it has something to do with JAVA ( i have downloaded jdk-7u79) Is there a latest version that needs to be downloaded? What is the specific path to place this?

Please help - I am new