[英]What is difference between SDK tool and Build Tool in Android SDK Components?
I want to know the exact difference between SDK Tool and Build Tools.According to some article and answer, both tools are used to build apk.我想知道 SDK Tool 和 Build Tools 之间的确切区别。根据一些文章和答案,这两个工具都用于构建 apk。 I went through officials document but did't get anything.
我浏览了官方文件,但什么也没得到。
Please provide difference/Detail of all Android SDK components.请提供所有 Android SDK 组件的差异/详细信息。
SDK TOOL : A software development toolkit (SDK) is a set of software tools and programs provided by hardware and software vendors that developers can use to build applications for specific platforms. SDK 工具:软件开发工具包 (SDK) 是由硬件和软件供应商提供的一组软件工具和程序,开发人员可以使用这些工具和程序为特定平台构建应用程序。
BUILD TOOL : Build tools are programs that automate the creation of executable applications from source code.构建工具:构建工具是自动从源代码创建可执行应用程序的程序。 Building incorporates compiling, linking and packaging the code into a usable or executable form.
构建包括将代码编译、链接和打包成可用或可执行的形式。
The Platform tools are more specifically suited to the version of Android that you want to target.平台工具更适合您要定位的 Android 版本。 Generally, it is best to install the latest Platform tools, after first installation though, you need to keep your Platform-tools constantly updated.
通常,最好安装最新的平台工具,但在首次安装后,您需要不断更新平台工具。
The Android Debug Bridge (ADB) is a program that allows you to communicate with any Android device. Android Debug Bridge (ADB)是一个允许您与任何 Android 设备进行通信的程序。 It relies on Platform-tools in order to understand the Android version that is being used.
它依赖于平台工具来了解正在使用的 Android 版本。
The Android emulator is what lets you test and monitor apps on a PC, without necessarily needing to have a device available Android 模拟器可让您在 PC 上测试和监控应用程序,而无需提供可用设备
In my understanding build tool will control the overall build process and will finally generate an APK using the SDK tools.在我的理解中,构建工具将控制整个构建过程,并最终使用 SDK 工具生成一个 APK。 Build toll uses zip align tool to optimize the app to use minimal memory and will use the app signer which signs the APK for verification.
Build toll 使用 zip align 工具优化应用程序以使用最少的内存,并将使用签署 APK 的应用程序签名者进行验证。 It can also use other additional tools for the build process.
它还可以在构建过程中使用其他附加工具。
I agree that names are confusing because the overall build systems are being developed over the years and new tools are introduced and sometimes old names are modified.我同意名称令人困惑,因为多年来一直在开发整体构建系统,引入了新工具,有时还会修改旧名称。 For example, Build tools were under Platform-tools previously but later it got more importance and become a separate tool.
例如,Build 工具以前在 Platform-tools 下,但后来它变得更加重要并成为一个单独的工具。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.