简体   繁体   中英

Android Studio Java JDK error

I want to learn to make Java Android applications in Android Studio, I downloaded both the Java JDK and Android studio on an external drive (D:). I'm getting this error on start-up:

tools.jar seems to be not in Studio classpath.

Please ensure JAVA_HOME points to JDK rather than JRE.

So I already searched Stackoverflow for the same error, but my Java folder seems to be a little bit different (it makes me wonder if I downloaded the correct JDK). Because the advice was to either move tools.jar or change the value of JAVA_HOME. None of those are an option because i can't seem to find the JDK in the Java folder. (D:\\Java) Did I install the wrong JDK? Thanks in advance.

1) Download JDK: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

2) Android Studio -> File -> Project structure -> JDK location. Point at where you have installed it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM