2013-06-15 33 views
13

Sự khác biệt giữa Công cụ phát triển Android và Công cụ SDK Android và công cụ nền tảng SDK Android và công cụ tạo SDK Android là gì?Sự khác biệt giữa một số "công cụ phát triển Android/SDK" là gì?

Và tại sao không hợp nhất một số người trong số họ thành các nhóm ít hơn? 4 công cụ làm tôi bối rối khi tôi hạ cấp/nâng cấp chúng.

+0

Tham khảo: http://stackoverflow.com/questions/8817554/what-is-difference-between-platform-tools-and-sdk-tools –

Trả lời

5

Vâng, Công cụ phát triển Android (ADT) là một plugin được sử dụng kết hợp với Eclipse để phát triển apps.There là một ADT bó đó là một gói phần mềm có chứa mọi thứ bạn cần để bắt đầu tạo ứng dụng.

Tuy nhiên, Công cụ SDK là thành phần có thể tải xuống cho Android SDK. Nó bao gồm bộ công cụ phát triển và gỡ lỗi hoàn chỉnh cho Android SDK.

Tôi khuyên bạn nên tải xuống gói ADT. Nó chứa mọi thứ bạn cần. Cuối cùng, Google I/O Android Studio đã được giới thiệu nhưng vẫn ở phiên bản beta. Về cơ bản nó làm những gì ADT làm và cho phép bạn xem cách ứng dụng của bạn sẽ xuất hiện trên nhiều thiết bị khác nhau.

+0

Cảm ơn! Tôi sẽ thử gói ADT sau. – herbertD

+1

Cập nhật: Bây giờ tôi đang sử dụng Android studio 0.3.5 và nó tốt hơn nhiều so với nhật thực, vì vậy tôi không cần ADT nữa. – herbertD

8

Công cụ SDK

Công cụ SDK được cài đặt gói SDK khởi động và được cập nhật định kỳ. Các công cụ SDK là bắt buộc nếu bạn đang phát triển các ứng dụng Android. Các công cụ SDK quan trọng nhất bao gồm Trình quản lý SDK Android (sdk android), Trình quản lý AVD (android avd) trình mô phỏng (trình mô phỏng) và Máy chủ màn hình gỡ lỗi Dalvik (ddms). Tóm tắt ngắn gọn về một số công cụ SDK thường được sử dụng được cung cấp bên dưới.

android

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 

Vẽ 9 vá

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 (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. 

Hierarchy Viewer (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. 

m ksdcard

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). 

Khỉ

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. 

căn chỉnh nén

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. 

vBulletin cụ

Các công cụ nền tảng thường được cập nhật mỗi khi bạn Inst tất cả nền tảng SDK mới. Mỗi cập nhật của các công cụ nền tảng là tương thích ngược với các nền tảng cũ hơn. Thông thường, bạn chỉ sử dụng trực tiếp một trong các công cụ nền tảng — Trình gỡ lỗi Android (adb). Android Debug Bridge là một công cụ linh hoạt cho phép bạn quản lý trạng thái của một trình giả lập hoặc thiết bị hỗ trợ Android. Bạn cũng có thể sử dụng nó để cài đặt tệp ứng dụng Android (.apk) trên thiết bị. Các công cụ nền tảng khác, chẳng hạn như aidl, aapt, dexdump và dx, thường được các công cụ xây dựng Android hoặc Công cụ phát triển Android (ADT) gọi, do đó bạn hiếm khi cần gọi trực tiếp các công cụ này. Theo nguyên tắc chung, bạn nên dựa vào công cụ xây dựng hoặc plugin ADT để gọi chúng khi cần.

Lưu ý: SDK Android cung cấp các công cụ vỏ bổ sung có thể được truy cập thông qua adb, chẳng hạn như bmgr và logcat.

Các vấn đề liên quan