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 Running the Fun Facts Project

Emmet Lowry
Emmet Lowry
10,196 Points

error when running android studio

it tells me errror 3,22 --- android requires compiling with JDK 7.

i have already downloaded JDK 7 anyone have any help...

Val Rich
Val Rich
3,802 Points

May need to set your Path Variable to the JDK. I had to do that when I was running android studio on Linux.

Another option to check out is oing into File -> Project Structure and defining the JDK location or make sure it is at least pointed to the right location.( Mine for example is directed to C:\Program Files\Java\jdk1.7.0_75 on a windows machine)

2 Answers

Check the JDK version that installed on your computer. If you are using Mac OS, open Terminal and type 'java -version'. Then you can get the result like this.

java -version

java version "1.7.0_55"
Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)

If you are using other OS, check this Link. https://www.java.com/en/download/help/version_manual.xml

Emmet Lowry
Emmet Lowry
10,196 Points

thx for the help guys.

luis martinez
luis martinez
2,480 Points

if you need any more help check this video is what i used to intall android studio. it takes you threw all the steps.
https://www.youtube.com/watch?v=nBD4xhH5vIE&list=PLGLfVvz_LVvSPjWpLPFEfOCbezi6vATIh