First of all, in the development environment, Google recommends that you use ubuntu10.0.4 and preferably 64-bit. Since it is for work and study, follow the official requirements as much as possible.
Python 2.5 -- 2.7 ubuntu10.0.4 has been installed by default, so you do not need to install it. You need to install it in other environments.
JDK 6 compiling 4.0 requires JDK 6 and JDK 5 for SDK Compilation
Git 1.7 or newer
If your Ubuntu is 32-bit, perform the following steps before downloading the source code:
After downloading the source code, modify the following four files: external/clearsilver/cgi/Android. mk.
External/clearsilver/Java-JNI/Android. mk
External/clearsilver/util/Android. mk
External/clearsilver/CS/Android. mk
Set local_cflags + =-M64
Local_ldflags + =-M64
Change to local_cflags + =-M32
Local_ldflags + =-M32
In build/CORE/Main. mk
Find ifneq (64, $ (findstring 64, $ (build_arch )))
Change it to ifneq (i686, $ (findstring i686, $ (build_arch )))
If you install Ubuntu with the latest 11.04 header, a header file loss error may occur at the end of the compilation due to the kernel version bug. For example:, please fix it as follows:
Repo download platform/external/qemu 22776/1 if you are 10.0.4, do not do anything redundant. If you fix it, the compiled version may fail to enter the system due to the black screen. Remember!