gpt4 book ai didi

android - some "Android Development/SDK tools"有什么区别?

转载 作者:塔克拉玛干 更新时间:2023-11-01 21:24:40 25 4
gpt4 key购买 nike

Android 开发工具和 Android SDK 工具以及 Android SDK 平台工具和 Android SDK 构建工具之间有什么区别?

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

最佳答案

SDK 工具

SDK 工具随 SDK 启动包一起安装并定期更新。如果您正在开发 Android 应用程序,则需要 SDK 工具。最重要的SDK工具包括安卓SDK管理器(android sdk)、AVD管理器(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.

Android Emulator(模拟器)

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.

混淆器

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.

跟踪 View

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

zipper

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 提供了额外的 shell 工具,可以通过 adb 访问,例如 bmgr 和 logcat。

关于android - some "Android Development/SDK tools"有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17121178/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com