BPI-M3 How to build the android compile environment?

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


this is for chinese documents

Do you have english documents ?