$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
$ sudo apt-get update
$ sudo apt-get install sun-java6-jdk
GNU Make 3.82 will even prevent Android system from building
$ sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \
x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \
libgl1-mesa-dev g++-multilib mingw32 tofrodos
More information about this can be found in the official Android Page .
$ mkdir ~/bin
$ PATH=~/bin:$PATH
export PATH=~/bin:$PATH in file ~/.bashrc and
$ source ~/.bashrc
$ cd ~
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
$ mkdir < ANDROID_WORKING_DIR >
$ cd < ANDROID_WORKING_DIR >
~/mydroid $ repo init -u https://android.googlesource.com/platform/manifest -b android-2.3.5_r1
Get https://android.googlesource.com/tools/repo
remote: Counting objects: 1462, done
remote: Finding sources: 100% (80/80)
Receiving objects: 100% (1462/1462), 437.79 KiB, done.
remote: Total 1462 (delta 952), reused 1462 (delta 952)
Resolving deltas: 100% (952/952), done.
From https://android.googlesource.com/tools/repo
* [new branch] maint -> origin/maint
................
repo initialized in < ANDROID_WORKING_DIR >
$ repo sync
Copyright by the contributing authors. All material on the platform is the property of the contributing authors.
Android is a trademark of Google Inc. Use of this trademark is subject to Google Permissions
Atmel and others, are registered trademarks or trademarks of Atmel or its subsidiaries.![]()
ARM and others are registered trademarks or trademarks or ARM Ltd. Other terms and product names may be trademarks of others.
Under the terms of the Creative Commons Attribution License