Install the required libraries
sudo apt-get install build-essential sudo apt-get install make sudo apt-get install gcc sudo apt-get install g++ sudo Apt-get Install libc6-dev sudo apt-get install patch sudo apt-get install texinfo sudo apt-get install Libncurses-dev sudo apt-get install git-core gnupg sudo apt-get install flex sudo apt-get install bison sudo apt-get install gperf s Udo Apt-get Install Libsdl-dev sudo apt-get install libesd0-dev sudo apt-get install libwxgtk2.6-dev sudo apt-get insta ll build-essential sudo apt-get install zip sudo apt-get Install curl sudo apt-get install Ncurses-dev sudo apt-get in Stall Zlib1g-dev sudo apt-get install valgrind sudo apt-get install python2.7 sudo apt-get install libgtk2.0-0:i386 su Do apt-get install libpangox-1.0-0:i386 sudo apt-get install libpangoxft-1.0-0:i386 sudo apt-get install libidn11:i386 sudo apt-get install gstreamer0.10-pulseaudio:i386 sudo apt-get install gstreamer0.10-plugins-base:i386 sudo apt-get ins Tall Gstreamer0.10-plugins-good:i386 sudo apt-get install gstreamer0.10-ffmpeg:i386 sudo apt-get install libxml2-utils sudo apt-get install xs Ltproc
Enter the Android source directory
①source build/envsetup.sh
②lunch
To select a compilation platform at this time
③make-j8
32-bit ubuntu16.4 compiled android4.1.1