Unable to build android on ubuntu 10.04

Asked by satish

I am very new to Linux & Android, when i tried to build android i get the following error can anyone please help me in t his regard

============================================
Checking build tools versions...
************************************************************
You are attempting to build with the incorrect version
of javac.

Your version is: javac 1.5.0_19.
The correct version is: 1.6.

Please follow the machine setup instructions at
    http://source.android.com/source/download.html
************************************************************
build/core/main.mk:130: *** stop. Stop.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
satish
Solved:
Last query:
Last reply:
Revision history for this message
Aruna Hewapathirane (aruna-hewapathirane) said :
#1

It seems the java compiler you have installed is 1.5.0_19 and android needs 1.6 so what you need to do is:

1- Open the "Synaptic Package Manager" from the "Administration" sub-menu of the "System" menu.
2 - Enter your password when prompted.
3 -Type "java6" in the "Quick Search" box.
4-Click on "Mark for Installation" next to "sun-java6-jdk."
5-Click on "Apply" in the main toolbar.

Revision history for this message
Jens Maucher (jensmaucher) said :
#2

Activate partner packages in you sources.list

 deb http://archive.canonical.com/ubuntu lucid partner

Install sun-java6-jdk

 sudo aptitude install sun-java6-jdk

Revision history for this message
satish (snsatish2) said :
#3

thanks the problem is solved