简体   繁体   中英

How do I add JDK libraries to my app?

I understand that Android doesn't use the full jdk, but I want to add javax to my Android project. More specifically I want to add javax.tools. I can't find a download for it though. Do I have to add the entire JDK as an external library to access javax.tools? Or is none of this possible?

when you installing jdk in your system , and then define jdk's path to AndoridStudio . so all of your android projects included jdk as an external library. so you don't need to do any thing else. just check your jdk status by this way:

Open command prompt and type java -version. If you get the version info, Java is installed correctly and PATH is also set correctly. and if you don't get:

Go to start menu-->System-->Advanced-->Environment Variables and define your jdk path .

and finally define it in your project Structure in Android Studio .

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