You will have to checkout the Android SDK source code, make your changes, build the binaries, push the binaries to somewhere where your project can find them, configure your project to use this custom build.
I think I may misunderstand somthing on your comment. Coudl you please give me some directions again? Thanks a lot.
The detailed question is :
(1)I’ve done build one android project using “gradle assemble --debug” command. (2)From the build log, I found I need to add one flag during the compilation. (3)After downloading the gradle source code from http://www.gradle.org/downloads (gradle-1.6-all.zip), I found the flag can be added in AndroidBuilder.java which is located in gradle-1.6-all directory, instead of the android sdk directory. (4)I need to find ways to re-compile AndroidBuilder.java for custom build. (5)If my thoughts are incorrect, please correct me.