13

Android Development Tools 和 Android SDK Tools 以及 Android SDK Platform-tools 和 Android SDK Build-tools 有什么区别?

为什么不将其中一些合并到更少的组中呢?当我降级/升级它们时,这 4 个工具让我感到困惑。

4

2 回答 2

8

开发工具包工具

SDK 工具随 SDK 启动包一起安装,并定期更新。如果您正在开发 Android 应用程序,则需要 SDK 工具。最重要的 SDK 工具包括 Android SDK Manager (android sdk)、AVD Manager (android avd)、模拟器 (emulator) 和 Dalvik Debug Monitor Server (ddms)。下面提供了一些常用 SDK 工具的简短摘要。

安卓

Lets you manage AVDs, projects, and the installed components of the SDK.

Dalvik 调试监控服务器 (ddms)

Lets you debug Android applications.

dmtracedump

Generates graphical call-stack diagrams from trace log files. The tool uses the Graphviz Dot utility to create the graphical output, so you need to install Graphviz before running dmtracedump. For more information on using dmtracedump, see Profiling with Traceview and dmtracedump

绘制 9-patch

Allows you to easily create a NinePatch graphic using a WYSIWYG editor. It also previews stretched versions of the image, and highlights the area in which content is allowed.

安卓模拟器(模拟器)

A QEMU-based device-emulation tool that you can use to design, debug, and test your applications in an actual Android run-time environment.

层次结构查看器 (hierarchyviewer)

Lets you debug and optimize an Android application's user interface.

hprof-conv

Converts the HPROF file that is generated by the Android SDK tools to a standard format so you can view the file in a profiling tool of your choice.

布局选择

Lets you quickly analyze your application's layouts in order to optimize them for efficiency.

mksdcard

Helps you create a disk image that you can use with the emulator, to simulate the presence of an external storage card (such as an SD card).

Runs on your emulator or device and generates pseudo-random streams of user events such as clicks, touches, or gestures, as well as a number of system-level events. You can use the Monkey to stress-test applications that you are developing, in a random yet repeatable manner.

猴跑者

Provides an API for writing programs that control an Android device or emulator from outside of Android code.

ProGuard

Shrinks, optimizes, and obfuscates your code by removing unused code and renaming classes, fields, and methods with semantically obscure names.

系统跟踪

Lets you analyze the execution of your application in the context of system processes, to help diagnose display and performance issues.

sqlite3

Lets you access the SQLite data files created and used by Android applications.

跟踪视图

Provides a graphical viewer for execution logs saved by your application.

拉链对齐

Optimizes .apk files by ensuring that all uncompressed data starts with a particular alignment relative to the start of the file. This should always be used to align .apk files after they have been signed.

平台工具

每次安装新的 SDK 平台时,平台工具通常都会更新。平台工具的每次更新都向后兼容旧平台。通常,您只直接使用其中一种平台工具——Android Debug Bridge (adb)。Android Debug Bridge 是一种多功能工具,可让您管理模拟器实例或 Android 驱动设备的状态。您还可以使用它在设备上安装 Android 应用程序 (.apk) 文件。

其他平台工具,例如aidl、aapt、dexdump 和dx,通常由Android 构建工具或Android 开发工具(ADT) 调用,因此您很少需要直接调用这些工具。作为一般规则,您应该依赖构建工具或 ADT 插件来根据需要调用它们。

注意:Android SDK 提供了额外的可以通过 adb 访问的 shell 工具,例如 bmgr 和 logcat。

于 2013-06-15T07:33:45.243 回答
5

好吧,Android 开发工具(ADT)是一个插件,它与Eclipse结合使用来开发应用程序。有一个ADT捆绑包,它是一个包含您开始创建应用程序所需的一切的包。

但是,SDK 工具Android SDK的可下载组件。它包括一套完整的Android SDK开发和调试工具。

我建议您下载 ADT Bundle。它包含您需要的一切。终于推出了 Google I/O Android Studio,但它仍处于 beta 版本。它基本上完成了 ADT 的工作,并允许您查看您的应用程序在许多不同设备上的显示方式。

于 2013-06-15T07:30:42.010 回答