Please read the AOSP building instructions before proceeding.
$ repo init -u https://github.com/crdroidandroid/android.git -b <revision>
$ repo sync
This can help if, for example, you want to make a quick change and quickly push it back for review. You should note that this can sometimes cause issues when building if there is a large change that spans across multiple projects.
$ repo sync PROJECT
$ . build/envsetup.sh
$ lunch <choice your device (Step only for supported devices)>
$ brunch <your choice>