ASUS officially only provides two versions of Android system and Debian system
To compile the Android source code, choose to build the Android source code compilation environment, and to compile the Debian source code, choose to build the Debian source code compilation environment.
To compile Android, the configuration requirements for PC (computer):
64bit CPU
16GB memory (including physical memory and swap memory)
250GB disk space
If the physical memory is not enough, then swap memory to make up.
You can choose to increase the swap memory to ensure that the physical memory plus swap memory is greater than or equal to 16GB
It is recommended to use Ubuntu16.04 64-bit or Ubuntu18.04 64-bit system.
Enter in the terminal of Ubuntu on the PC side:
sudo apt-get install openjdk-8-jdk
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git gnupg flex bison gperf libsdl1.2-dev \
libesd-java libwxgtk3.0-dev squashfs-tools build-essential zip curl \
libncurses5-dev zlib1g-dev pngcrush schedtool libxml2 libxml2-utils \
xsltproc lzop libc6-dev schedtool g++-multilib lib32z1-dev lib32ncurses5-dev \
lib32readline-dev gcc-multilib libswitch-perl libssl-dev unzip zip
Enter in the terminal of Ubuntu on the PC side:
sudo apt-get install git-core gitk git-gui gcc-arm-linux-gnueabihf device-tree-compiler\
gcc-aarch64-linux-gnu mtools parted libssl-dev