How to build the android compile environment for M3?

I have download the source andorid code for M3,when i complied it ,the error comes.I hope someone can teach me how to build the android compile environment for M3 ?

android 5.0 development document

https://drive.google.com/file/d/0B4PAo2nW2KfnekpvMnlNZ2p6NWs/view?usp=sharing

this is for chinese documents

Do you have english documents ?