This guide is very quick start installation guide to get you up and running with the Google Android Software Development Kit (SDK).
First you’ll need to download the Android SDK source files: (http://developer.android.com/sdk/index.html)
System Requirements
1) Operating systems
- Windows XP or Vista
- Mac OS X 10.4.8 or later (x86 only)
- Linux (tested on Linux Ubuntu Dapper Drake)
2) Development environment
a) Eclipse
- Eclipse 3.2, 3.3 (Europa)
- Android Development Tools plugin (optional)
b) Other development environments or IDEs
- JDK 5 or JDK 6 (JRE alone is not sufficient) Not compatible with Gnu Compiler for Java (gcj)
- Apache Ant 1.6.5 or later for Linux and Mac, 1.7 or later for Windows.
Installing The Android SDK
1) Download the Android SDK pack .zip archive.
2) extract the zipped files in suitable location.
Please note:
This installation location will be referred to as $SDK_ROOT.
Alternatively you can add /tools to your root path which will prevent the need to specify the full path to the tools directory along with enabling you to run Android Debug Bridge adb) along with other command line tools.
Linux
- Edit the ~/.bash_profile or ~/.bashrc files looking for a line that sets the PATH variable. Add the full path location to your $SDK_ROOT/tools location for thePATH variable.
- If no PATH line exists you can add the line by typing the following:
export PATH=${PATH}:<path to your $SDK_ROOT/tools>
Mac OSX
- In the home directory locate the .bash_profile and locating the PATH variable add the location to your $SDK_ROOT/tools folder.
Windows XP/Vista
- My Computer icon -> Right Click -> Properties -> AdvancedTab -> EnvironmentVariable.
- In the new dialog box double-click on Path (located under System Variables) and type in the full path location to the tools directory.
Android Eclipse Plugin (ADT)
If you choose to use the Eclipse IDE as your Android development environment you will have the opportunity to install and run a plug-in called Android Development Tools. ADT comes with a variety of powerful tools and extensions that will make creating, running and debugging your Android applications much easier and faster.
In order to download and install ADT you will first need to configure an Eclipse remote update, this can achieved via the following steps:
1. Start Eclipse, then select Help > Software Updates > Find and Install….In the dialog that appears, select Search for new features to install and press Next.
2. Press New Remote Site.
3. In the resulting dialog box, enter a name for the remote site (e.g. Android Plugin) and enter this as its URL: https://dl-ssl.google.com/android/eclipse/.
Press OK.
4. You should now see the new site added to the search list (and checked).Press Finish.
5. In the subsequent Search Results dialog box, select the checkbox for Android Plugin > Eclipse Integration > Android Development Tools and press Next.
6. Read the license agreement and then select Accept terms of the license agreement, if appropriate. Press Next. Press Finish.
7. The ADT plugin is not signed; you can accept the installation anyway by pressing Install All.
8.Restart Eclipse.
After restart, update your Eclipse preferences to point to the SDK root directory
9. ($SDK_ROOT):
Select Window > Preferences… to open the Preferences panel.
(Mac OS X: Eclipse > Preferences)
Select Android from the left panel.
For the SDK Location in the main panel, press Browse... and find the SDK root directory.
10. Press Apply, then OK.
No comments:
Post a Comment