how to compile and modify android 4.0.3 source cod

2019-09-15 19:53发布

问题:

I have downloaded the android source code 4.0.3, installed cygwin with make and gcc, and downloaded ndk and sdk, integrated eclipse with cdt and adt. Using windows 7 64bit.

Can you guys tell me how to build this source code in eclipse in order to customize the native settings menu.

Thanks in advance.

FYI :I have been through google, stackoverflow, but couldn't find any lead which works.

回答1:

See these pages in the Developer docs: Initializing a Build Environment. This page seems to indicate that Mac, and Linux are the only supported build environment OS. I would suggest using one of those instead of Windows 7.

Once you've got environment set up see also: Building and Running



回答2:

I think it will be very difficult. From my experience, even on the supported platforms there are difficulties to tune build environment. Windows is not supported so I think this is almost impossible there.

Maybe in your case it's worth to install a virtual machine?