Android开发工具和Android SDK工具以及Android SDK平台工具和Android SDK构建工具有什么区别?
为什么不将它们中的一些合并为更少的组?当我降级/升级它们时,4个工具让我很困惑。
答案 0 :(得分:8)
SDK工具
SDK工具随SDK入门套件一起安装,并定期更新。如果您正在开发Android应用程序,则需要SDK工具。最重要的SDK工具包括Android SDK Manager(android sdk),AVD Manager(android avd)模拟器(模拟器)和Dalvik Debug Monitor Server(ddms)。下面提供了一些常用SDK工具的简短摘要。
机器人
Lets you manage AVDs, projects, and the installed components of the SDK.
Dalvik Debug Monitor Server(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模拟器(模拟器)
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.
layoutopt
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.
monkeyrunner
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.
Systrace
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.
traceview
Provides a graphical viewer for execution logs saved by your application.
的zipalign
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。
答案 1 :(得分:5)
嗯, Android开发工具(ADT)是一个与 Eclipse 结合使用的插件来开发apps.There有一个 ADT bundle是一个包含开始创建应用程序所需的一切的包。
但 SDK工具是 Android SDK 的可下载组件。它包含 Android SDK 的完整开发和调试工具集。
我建议你下载ADT套装。它包含您需要的一切。最后推出了Google I / O Android Studio,但它仍处于测试版。它基本上做了ADT的工作,并允许您查看您的应用在许多不同设备上的显示方式。