'Weird Problem Trying to compile Android Emulator

Script to replicate

git clone https://android.googlesource.com/platform/external/qemu
cd qemu
./android-configure.sh

Gives me:

Auto-config: --ui=sdl2
Auto-config: --out-dir=objs
Prebuilt   : CCACHE=/usr/bin/ccache
ERROR: Not a valid AOSP tree: missing directory: //prebuilts/gcc
ERROR: Cannot generate SDK toolchain!

I have no idea of how to solve this error to compile Android Device Emulator.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source