Pre-requisites for using a 64bit Linux
The Android SDK is 32bit, therefore on a 64bit Linux system you need to have the packageia32-libs
installed. For Ubuntu you can do this via the following command.
apt-get install ia32-libsPlease check your distribution documentation, if you are using a different flavor of Linux.
Use the
Eclipse update manager
to install all available components
for
the
Android Development
Tools
(ADT) from the URL
https://dl-ssl.google.com/android/eclipse/.
After the new Android development components are installed, you will be prompted to install the Android SDK. You can use the following wizard or go to the next section to learn how to do it manually.
After the new Android development components are installed, you will be prompted to install the Android SDK. You can use the following wizard or go to the next section to learn how to do it manually.
After the installation of the ADT the Eclipse tooling allows to
download the Android SDK automatically. Alternatively you can
also
manually download the Android SDK from the
Android SDK download page.
The download contains a zip file, which you can extract to any place in your file system, e.g. on my Linux system I placed it under "/home/vogella/android-sdks". Avoid using spaces in the path name, otherwise you may experience problems with the usage of the Android SDK.
You also have to define the location of the Android SDK in the Eclipse Preferences. In Eclipse open the Preferences dialog via the menu → . Select Android and enter the installation path of the Android SDK.
The download contains a zip file, which you can extract to any place in your file system, e.g. on my Linux system I placed it under "/home/vogella/android-sdks". Avoid using spaces in the path name, otherwise you may experience problems with the usage of the Android SDK.
You also have to define the location of the Android SDK in the Eclipse Preferences. In Eclipse open the Preferences dialog via the menu → . Select Android and enter the installation path of the Android SDK.
The Android SDK Manager allows you to install specific versions of
Android.
Select
→
from the Eclipse menu.
The dialog allows you to install new packages and also allows you to delete them.
Select Available packages and open the Third Party Add-ons . Select the Google API 15 (Android 4.0.3) version of the SDK and press the button.
Press the button and confirm the license for all packages. After the installation completes, restart Eclipse.
The dialog allows you to install new packages and also allows you to delete them.
Select Available packages and open the Third Party Add-ons . Select the Google API 15 (Android 4.0.3) version of the SDK and press the button.
Press the button and confirm the license for all packages. After the installation completes, restart Eclipse.
During Android development it is very
useful to have the Android
source code available.
As of Android 4.0 the Android development tools provides also the source code. You can download it via the Android SDK Manager by selecting the Sources for Android SDK.
The sources are downloaded to the source directory located in
To connect the sources with the android.jar file in your Android project, right click on your android.jar in the Eclipse Package Explorer and select → . Type in the source directory name and press the button.
Afterwards you can browse through the source code.
(vogella.com)
As of Android 4.0 the Android development tools provides also the source code. You can download it via the Android SDK Manager by selecting the Sources for Android SDK.
The sources are downloaded to the source directory located in
path_to_android_sdk/sources/android-xx
. xx is the API level of
Android, e.g.
15 for the Android 4.0.4
version.
To connect the sources with the android.jar file in your Android project, right click on your android.jar in the Eclipse Package Explorer and select → . Type in the source directory name and press the button.
Afterwards you can browse through the source code.
(vogella.com)