Android is the most widely used smartphone operating system in the world, and anyone can create a successful app for Android. All you need is a good idea and some developer resources. Installing this software is fortunately relatively easy, within a few minutes you can get started with your new project.
Part 1 of 2: Installing Eclipse
Step 1. Install the Java platform
Eclipse and ADT are built on the Java platform, so to run the programs you need to install the latest version of the Java Development Kit (JDK). This can be downloaded for free from Oracle's website. Download the correct version for your operating system.
If you do not have a Java Runtime Environment (JRE) installed, Eclipse cannot be opened
Step 2. Download the Eclipse platform
Before you can install tools specifically geared toward Android development, you need to download Eclipse. The Android tools are placed on top of that. Eclipse is available for free download from the Eclipse Foundation website.
Most developers for Android have enough of the 'Eclipse Standard package'
Step 3. Extract the Eclipse file
You download Eclipse as a ZIP file. Extract the IP file to a folder of your choice, for example C:\. The ZIP file contains a subfolder called 'eclipse', so if you extract the file to the C:\ drive you will automatically get the folder 'C:\eclipse'.
Many users experience problems with the Windows extraction utility. In that case, use an alternative program to extract ZIP files, such as 7-Zip or WinZip
Step 4. Create a shortcut to Eclipse
Since Eclipse is not installed in the traditional way, it may be useful to create a shortcut so that you can quickly open the program from your desktop. This way you can also easily specify which Java Virtual Machine (JVM) you will be working with.
Right click on eclipse.exe and select 'Send to'. Click on 'Desktop (create shortcut)'. This will create a new shortcut on your desktop that will allow you to open Eclipse
Step 5. Specify the Java Virtual Machine
If you have multiple JVMs installed on your computer, you can set Eclipse to always use the same one. This will help you avoid errors caused by JVM's operating system switching due to other programs.
- To specify the installation of the JDK: add the following line to the Eclipse shortcut, replacing the path with the location of your javaw.exe file with:
Part 2 of 2: Installing the ADT plugin
Step 1. Download and install the Android Software Developer Kit (SDK)
This can be downloaded for free from the Android website. Both the website and the SDK are available in English only. Select the 'Use an Existing IDE' option to just download the SDK. You can also download an ADT bundle that includes Eclipse, but then you are not sure if you are downloading the latest version of Eclipse.
After installing the SDK, the SDK manager should open automatically. Leave the window open for the next step
Step 2. Add packages to your Android SDK
Before you can start using the SDK to develop apps, you need to add the packages you will be using to your Android SDK. In the SDK Manager you will see a list of available packages to download (packages). In any case, for basic app development you need:
- The most recent "Tools" package in the "Tools" folder.
- The most recent version of Android (that's the first Android folder in the list).
- The 'Android Support Library', which can be found in the 'Extras' folder.
- Click "Install" when you're done. The files are downloaded and installed.
Step #3. Open Eclipse
You install ADT from Eclipse. If Eclipse doesn't start, make sure you specified the JVM (see the previous section).
Step 4. Install the ADT plugin
The ADT plugin must be downloaded from the Eclipse program, directly from the Android developers' repository. You can easily add this repository to the Eclipse installation.
Click Help. Select 'Install New Software'. Now the "Available Software" window will open, listing the available software from the repository you selected
Step 5. Click on the 'Add' button
This button can be found to the right of the 'Work with' field. This will open the "Add Repository" dialog box. Here you can provide information with which you download the ADT plugin.
- In the 'Name' field, enter 'ADT Plugin'.
- In the field 'Location' enter 'https://dl-ssl.google.com/android/eclipse/'
- Click OK.
- Check the box next to "Developer Tools". Click "Next" to display the list of tools that will be downloaded. Click on 'Next' again to open the conditions. Read the conditions and click on 'Finish'.
- You may get a warning stating that the source of the software is unknown. You can ignore this warning.
Step 6. Restart Eclipse
After the tools have been downloaded and installed, you can restart Eclipse to complete the installation. When you do that, you will see the welcome message 'Welcome to Android Development'.
Step 7. Specify the location of the Android SDK
In the welcome screen, click on 'Use existing SDKs', then find the folder of the SDK you installed at the beginning of this section. When you click OK, the basic installation of ADT is complete.