[英]Why does the Android SDK need a JDK?
I am trying to understand why the Android SDK needs the JDK. 我试图理解为什么Android SDK需要JDK。
Thanks 谢谢
The general process for a typical build is outlined below: 典型构建的一般过程概述如下:
Android SDK使用JDK将.java
文件编译为.class
字节码。
When you build the project all .java files get converted to .class. 构建项目时,所有.java文件都将转换为.class。 For which you need JDK.
你需要JDK。
Now the dx tool of adk converts all .class files to classes.dex file .And this classes.dex file is executed on dalvik virtual machine. 现在adk的dx工具将所有.class文件转换为classes.dex文件。此classes.dex文件在dalvik虚拟机上执行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.