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 trialEmmet Lowry
10,196 Pointserror 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...
2 Answers
Daehyun Park
16,573 PointsCheck 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
10,196 Pointsthx for the help guys.
luis martinez
2,480 Pointsif 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
Val Rich
3,802 PointsVal Rich
3,802 PointsMay 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)