简体   繁体   English

APK和Java标准库和SDK平台

[英]APK and Java Standard Library and SDK Platform

When I analyze an APK, I see classes.dex and it supposed to contain my Java code and it does, why it also contains Java standard Library (java.io.) and the SDK platform (android.app.) which I used to compile the project. 当我分析一个APK时,我会看到classes.dex,它应该包含我的Java代码并且包含它,为什么它还包含我以前使用的Java标准库(java.io.)和SDK平台(android.app。)编译项目。

Can anybody explain why are they included? 有人可以解释为什么将它们包括在内吗?

Basically, when we are writing any program we need to import the classes which are needed. 基本上,当我们编写任何程序时,我们需要导入所需的类。 So, likewise to run the program, it needs those code. 因此,同样要运行该程序,它需要这些代码。 The java.io or android.support are nothing but some codes written. java.ioandroid.support只是编写了一些代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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