Ubuntu 12.04 build android source code
The error:
Checking build tools versions...
************************************************************
You are attempting to build with the incorrect version
of java.
Your version is: java version "1.6.0_45".
The correct version is: Java SE 1.6.
Please follow the machine setup instructions at
http://source.android.com/source/download.html
************************************************************
build/core/main.mk:145: *** stop. Stop.
solve:
Commenting out the $(error stop) statement from build/core/main.mk on line 131 will allow compilation to proceed:
endif
end: make -j4
http://blog.markloiseau.com/2012/07/how-to-compile-android-on-ubuntu-12-04/