Method of configuring embedded JDK in Android studio

Today, I found that JDK environment variables are not configured properly@ H_ 502_ 1@

I didn't specifically download Java. When downloading Android studio, I will bring my own embedded JDK@ H_ 502_ 1@

Open file othersettings defaultprojectstructure to see that the as has automatically checked use embedded JDK, which is an officially recommended practice@ H_ 502_ 1@

@H_ 502_ 1@ @H_ 502_ 1@

The following is how to configure environment variables@ H_ 502_ 1@

The classpath environment variable will not be required after Java 1.8@ H_ 502_ 1@

We just need to configure Java_ Home and path@ H_ 502_ 1@

JAVA_ Home C: \ androidstudio \ JRE (JDK installation directory) @ h_ 502_ 1@

Add @ h after path_ 502_ 1@

%JAVA_ HOME%\ bin@H_ 502_ 1@

%JAVA_ HOME%\jre\ bin@H_ 502_ 1@

Test: @ h_ 502_ 1@

View the Java version in CMD@ H_ 502_ 1@

@H_ 502_ 1@ @H_ 502_ 1@

Summary @ h_ 502_ 1@

The above is the method of configuring embedded JDK in Android studio introduced by Xiaobian. I hope it will help you. If you have any questions, please leave me a message, and Xiaobian will reply to you in time. Thank you very much for your support for the programming tips website@ H_ 502_ 1@

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>