2013-06-15 11 views
13

Qual è la differenza tra gli strumenti di sviluppo Android e gli strumenti SDK Android e gli strumenti della piattaforma SDK Android e gli strumenti di sviluppo dell'SDK di Android?Qual è la differenza tra alcuni "strumenti Android Development/SDK"?

E perché non unire alcuni di essi in un numero inferiore di gruppi? I 4 strumenti mi hanno confuso quando eseguivo il downgrade/l'aggiornamento.

+0

Fare riferimento a questo: http://stackoverflow.com/questions/8817554/what-is-difference-between-platform-tools-and-sdk-tools –

risposta

5

Ebbene, i Android Development Tools (ADT) è un plugin che viene utilizzato in combinazione con Eclipse di sviluppare apps.There è un ADT bundle che è un pacchetto che contiene tutto il necessario per iniziare a creare app.

Tuttavia le strumenti SDK è un componente scaricabile per il Android SDK. Include il set completo di strumenti di sviluppo e debug per l'SDK Android .

Quello che consiglierei è di scaricare il pacchetto ADT. Contiene tutto ciò di cui hai bisogno. Finalmente è stato introdotto Google I/O Android Studio ma è ancora nella sua versione beta. Fondamentalmente fa quello che fa ADT e ti permette di vedere come apparirà la tua app su molti dispositivi diversi.

+0

Grazie! Proverò il pacchetto ADT più tardi. Aggiornamento – herbertD

+1

: Ora sto usando Android studio 0.3.5 ed è molto meglio di eclissi, quindi non ho più bisogno di ADT. – herbertD

8

strumenti SDK

SDK strumenti vengono installati con il pacchetto di avviamento SDK e vengono periodicamente aggiornati. Gli strumenti SDK sono necessari se stai sviluppando applicazioni Android. Gli strumenti SDK più importanti includono Android SDK Manager (Android SDK), AVD Manager (Android AVD) l'emulatore (emulatore) e il server di debug di monitoraggio Dalvik (ddms). Di seguito viene fornito un breve riepilogo di alcuni strumenti SDK utilizzati di frequente.

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-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 (emulatore)

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

scimmia

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

Gli strumenti di piattaforma sono generalmente aggiornati ogni volta che si Inst tutta una nuova piattaforma SDK. Ogni aggiornamento degli strumenti della piattaforma è retrocompatibile con piattaforme precedenti. Di solito, si utilizza direttamente solo uno degli strumenti della piattaforma: l'Android Debug Bridge (adb). Android Debug Bridge è uno strumento versatile che ti consente di gestire lo stato di un'istanza dell'emulatore o di un dispositivo Android. Puoi anche usarlo per installare un file di un'applicazione Android (.apk) su un dispositivo.

Gli altri strumenti della piattaforma, come aidl, aapt, dexdump e dx, vengono in genere chiamati dagli strumenti di build Android o dagli strumenti di sviluppo Android (ADT), quindi è raramente necessario richiamare direttamente questi strumenti. Come regola generale, è necessario affidarsi agli strumenti di compilazione o al plugin ADT per chiamarli secondo necessità.

Nota: l'SDK di Android fornisce ulteriori strumenti di shell a cui è possibile accedere tramite adb, ad esempio bmgr e logcat.

Problemi correlati