2013-06-15 20 views
13

Jaka jest różnica między narzędziami programistycznymi systemu Android a narzędziami Android SDK i narzędziami platformy Android SDK oraz narzędziami do tworzenia zestawów SDK systemu Android?Czym różnią się niektóre narzędzia "Android Development/SDK"?

A dlaczego nie połączyć niektórych z nich w mniejszej liczbie grup? Te 4 narzędzia dezorientowały mnie, gdy obniżałem/aktualizowałem je.

+0

Patrz: http://stackoverflow.com/questions/8817554/what-is-difference-between-platform-tools-and-sdk-tools –

Odpowiedz

5

Cóż, Android Development Tools (ADT) jest plugin, który jest używany w połączeniu z Eclipse rozwijać apps.There jest ADT wiązka jest to pakiet, który zawiera wszystko, czego potrzeba, aby rozpocząć tworzenie aplikacje.

Jednak narzędzie SDK Tools to składnik do pobrania dla zestawu Android SDK. Zawiera komplet narzędzi programistycznych i narzędzi do debugowania dla zestawu Android SDK.

Polecam, aby pobrać pakiet ADT. Zawiera wszystko, czego potrzebujesz. W końcu Google I/O Android Studio zostało wprowadzone, ale wciąż jest w wersji beta. Zasadniczo robi to, co robi ADT i pozwala zobaczyć, jak aplikacja będzie się wyświetlać na wielu różnych urządzeniach.

+0

Dzięki! Wypróbuję pakiet ADT w późniejszym czasie. – herbertD

+1

Aktualizacja: teraz używam Android Studio 0.3.5 i jest znacznie lepsza niż zaćmienie, więc nie potrzebuję już ADT. – herbertD

8

SDK Tools

SDK narzędzia są instalowane wraz z pakietem startowym SDK i są okresowo aktualizowane. Narzędzia SDK są wymagane, jeśli tworzysz aplikacje dla systemu Android. Najważniejsze narzędzia SDK to Android SDK Manager (android sdk), AVD Manager (Android avd) emulator (emulator) i Dalvik Debug Monitor Server (ddms). Poniżej znajduje się krótkie podsumowanie często używanych narzędzi SDK.

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 

Draw 9-łata

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. 

Hierarchia Viewer (hierarchyviewer)

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

hprof-konw

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

małpa

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. 

Tools Platform

narzędzi platformy są zazwyczaj aktualizowane za każdym razem, gdy Inst cała nowa platforma SDK. Każda aktualizacja narzędzi platformy jest kompatybilna wstecz ze starszymi platformami. Zwykle używasz tylko jednego z narzędzi platformy - Android Debug Bridge (adb). Android Debug Bridge to wszechstronne narzędzie, które pozwala zarządzać stanem instancji emulatora lub urządzenia z systemem Android. Można go również użyć do zainstalowania pliku aplikacji Android (.apk) na urządzeniu.

Inne narzędzia platformy, takie jak helpl, aapt, dexdump i dx, są zwykle nazywane przez narzędzia do budowania Androida lub narzędzia programistyczne Android (ADT), więc rzadko trzeba wywoływać te narzędzia bezpośrednio. Zasadą jest, że powinieneś polegać na narzędziach do budowania lub wtyczce ADT, aby wywołać je w razie potrzeby.

Uwaga: Zestaw SDK systemu Android zawiera dodatkowe narzędzia powłoki, do których można uzyskać dostęp za pomocą narzędzia adb, takiego jak bmgr i logcat.

Powiązane problemy