Installing Android Development Environment (Eclipse + Android)

Installing Android Development Environment (Eclipse + Android)

Here I will show the following main steps to install the development environment that allows us to start programming on Android!

The programming language used is Java,so you need to have pre-installed (or you have to download) on your computer the latest version of Java.

The main tool we will use is the development IDE of Eclipse;
Eclipse allows us to develop in different languages;you should download the latest version of the program that’s available free to link http://www.eclipse.org/downloads/ (download the latest version of “Eclipse IDE for Java Developers”in accordance with our operating system,ie 32 or 64 bits).
The extracted file is a zip file that will be extracted into your computer preferably in the “Programs”folder.
To start the program by itself in the Eclipse folder and click on the executable eclipse.exe.

The second important step is to install the Android SDK package (you can find links to http://developer.android.com/sdk/index.html ).

For Windows users you can download the executable file,or advice to create a new folder “Android”in “Programs”folder and extract the file .zip in this folder.
Once downloaded the SDK just run the executable “SDK Manager.exe“.
The SDK-manager when launched will be a review of the files already installed on your computer (“Installed packages“) and files available to download (“Available packages“);
proceed with the intallation on your pc of all necessary files found SDK Manager.

Once you download the missing files I recommend you keep open the SKD-Manager and go to the “Virtual devices”section;here by clicking the top right on “New”you can immediately create a virtual environment that you will use later to display a ‘emulation of your applications.
In creating one will be asked various information such as name,level API of Android on which you want to program,the size of the virtual device.

Finish these first two procedures must connect the Eclipse development environment with downloaded files for Android.
Once you open Eclipse must click on the top menu item “Help“,here select “Install new Software“;in the screen that will be opened,you click in the “Work with“ on button “Add”and enter the name of the software as “Android”and as the location the following url:https://dl-ssl.google.com/android/eclipse/.
In the window you should see the software “Developer Tools“ to download,you select all and click “Next”to continue and download and install the plugin.

After this procedure you will need to restart Eclipse.

To check if the process is successful click menu of Eclipse on “File”->”New”->”Project” and among the various types of projects should compare “Android Project”.

To create a first draft Android click “Android Project” and then “Next“;prompted for the name of the new project,the location on the workspace,choosing the API level (choose the same one you previously created a “virtual device“),the application name (eg “androidTest“),the “Package name”(eg “org.example.android“) and activity name (eg “androidTest“);
Clicking on “Finish”will appear in the “Project Expoler”Eclipse your first Android project!!!
To approach the planning of some small example with Android I suggest you looked at the various examples on this link:http://developer.android.com/resources/browser.html?tag=tutorial.

For example,you can start by copying the code proposed by some examples of this site in your project;once you have developed (or copied) code,to see the result just right click on the project,go on “Run As”(or “Degug As”to debug) and click on “Android Application“;
If you own a phone that has Android as the operating system can connect by USB to your PC and if you activate the function Debug (on your phone) when you will run an application from Eclipse you will be asked if you intend to run the application on the “virtual device “previously created,or if you want to run it directly on your phone (in this case,once you execute,the application will be loaded on your phone and you can will also restart the same application after disconnecting the phone).

And now have fun!
Happy Programming!!! :D

Andre

11 comments to Installing Android Development Environment (Eclipse + Android)

  • Riccardo

    Grande Andre!!!

    [Reply]

  • bella Andre!!! ma na foto del cellulare con l’applicazione che gira ci starebbe.

    [Reply]

  • Gian Luca

    Grazie Mille!!!

    [Reply]

  • Lorenzo

    Ciao grazie della favolosa guida!

    Ho seguito tutto alla lettera tranne per un punto..Dall’android SDK Tools ho scaricato solo i pacchetti relativi alla versione 2.2 perchè è quella l’unica che mi interessa e parte del pacchetto (third part google).

    Però quando vado in eclipse per creare un nuovo progetto mi dice “An SDK Target must be specified”ma io non posso selezionare nulla!!!

    COme faccio? Graziemille!!!

    [Reply]

  • Do you have more great artciels like this one?

    [Reply]

  • Grazie mille per la guida! Non riuscivo a capire come funzionasse la cosa.

    Però purtroppo anche io mi sono arenato allo stesso punto di Lorenzo:nei settaggi del nuovo progetto Android,in Eclipse,non riesco a selezionare alcun target.

    Come posso sbloccare la situazione?
    Grazie!

    [Reply]

  • rekrux

    Ciao,guida molto semplice è precisa,complimenti.
    Peccato il mio virtual device non voglia avviarsi. Ho fatto tutto quello che ci sta scritto,creo anche una piccola app di prova,cioè la visualizzazione del testo “Hello world”ma quando clicco su run –andoid ap. mi dice che non trova il device !! se prova ad avviare un virual device da me creato mi da l’errore “emulator can not find a device named nomeDevice”.
    Mi date un aiuto?

    [Reply]

  • Sandy

    Ciao,scusate ma a me non funziona l’installazione di un nuovo software su eclipse. L’errore è questo:Cannot complete the install because one or more required items could not be found.
    Software currently installed:Shared profile 1.0.0.1316138547364 (SharedProfile_epp.package.java 1.0.0.1316138547364)
    Missing requirement:Shared profile 1.0.0.1316138547364 (SharedProfile_epp.package.java 1.0.0.1316138547364) requires ‘org.maven.ide.eclipse [1.0.100.20110804-1717]‘but it could not be found
    Cosa devo fare?

    [Reply]

  • Massimo

    Ciao a tutti,ho eseguito l’installazione di tutte le componenti jdk-eclipse-sdk android.
    Dopo una prima installazione,sembrava stare tutto a posto,hocreato un progetto Android,ma non mi lanciava l’emulatore.
    Nel tentare delle modifiche e soluzioni,devo aver installato e/o disinstallato qualcosa che non mi fa più visualizzare neanche i progetti Android e non è presente tale scelta neanche nelle preferences…
    Provo a disinstallare tutto e reinstallare ma non riesco a risolvere più,non mi da più la voce Android nei progetti e nelle preferences…
    Qualcuno sa aiutami?

    Ciao e grazie
    M.

    [Reply]

  • Ciao,
    una volta che ho fatto un’applicazione come faccio a passarla ad un mio amico che ha uno smartphone con android?

    [Reply]

  • Ciao e complimenti.

    Una domanda che forse è stupida …

    IO NON TROVO “ANDROID SDK and AVD MANAGER”ma soltanto ANDROID SDK MANAGER..

    Che fare?

    [Reply]

Leave a Reply

Connect with Facebook

  

  

  

You can use these HTML tags

<a href=""title=""><abbr title=""><acronym title=""><b><blockquote cite=""><cite><code><del datetime=""><em><i><q cite=""><strike><strong>