user489152
user489152

Reputation: 907

Building android on ubuntu 10.04- 32 bit

I am trying to compile Android for Ubuntu 10.04 32 bit system. I am following the guide on http://source.android.com/source/initializing.html

But I get the following error:

You are attempting to build with the incorrect version of java.

Your version is: java version "1.6.0_20". The correct version is: Java SE 1.6.

Guess, ubuntu support for Java SE packages has been halted. Therefore should I now downgrade my Java JDK to 1.6?? Please help

Upvotes: 0

Views: 2064

Answers (2)

Eduardo
Eduardo

Reputation: 4382

Here someone faced the very same problem as yours. The solution, "after uninstalling OpenJDK and Sun Java, I reinstalled Sun Java 6 JDK by itself, rebooted, and all is well." Check the link for more informations. While searching for that, I also stumbled upon an issue with 64 bits, that is not your point, but may be useful for someone else.

Upvotes: 3

Joe Ho
Joe Ho

Reputation: 928

maybe you should use "sun jdk", not OpenJDK. the version should be 1.6.

Upvotes: 0

Related Questions