Intro
Recently I've decided to build the Android system image (Froyo) for my ADP1 from the lastest Android Open Source Project (AOSP).
I try to build it on Ubuntu Linux 10.04 LTS Desktop Edition 32-bit (x86).
If you'll follow the steps in
Getting the Source probably you'll find some issues.
The first issue will be in the first step (Setting up your machine), installing the packages for Sun JDK 5.
The command below it gives you an error about JDK 5.
sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev
E: Couldn't find package sun.java5.jdk
So, before of this command you have to use the cure to enable JDK5 and below you can find all the instruction.
Install JDK 5.0
These are the steps to solve the problem.
- Open the sources.list with GEdit or with your preferred editor
sudo gedit /etc/apt/sources.list
- Enable the package including in the list the Sun JDK 5. Add this line at the end of file.
deb http://ir.archive.ubuntu.com/ubuntu jaunty-updates main multiverse
- Update you package
sudo aptitude update
- Now you may install it with all the others packages
sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev
or alone
sudo apt-get install sun-java5-jdk
That's all. Now you can continue with the Android's document.
Have a nice day.