I am running android 9 AOSP. But after using source build/envsetup.sh
it successfully runs. But when I use,
administrator@administrator:ao9/android_build$ lunch sabresd_6dq-userdebug
I get:
bash: build/soong/soong_ui.bash: Permission denied
Found Solution.
administrator@administrator:ao9$ chmod -R 777 android_build
The reason for running this command is that the files do not have read, write and execute permissions for every user. This could have happened because you copied it from another filesystem with permissions already set, it likely does not happen is you download it straight to the box you are using.
Read here for more detailed explanation.