Before you can build anything, you are required to make your machine ready for building. For this you need to install a lot of libraries and modules. The most recommended Linux distribution is Ubuntu, so this example will focus on installing everything that is needed on Ubuntu.
First, add the following Personal Package Archive (PPA): sudo apt-add-repository ppa:openjdk-r/ppa.
Then, update the sources by executing: sudo apt-get update.
Installing Additional Dependencies
All required additional dependencies can be installed by the following command:
Preparing the system for development
Now that all the dependencies are installed, let us prepare the system for development by executing:
Finally, let us set up the cache and the repo by the following commands:
Please note: We can also achieve this setup by running the automated scripts made by Akhil Narang (akhilnarang), one of the maintainers of Resurrection Remix OS. These scripts can be found on GitHub.
This modified text is an extract of the original Stack Overflow Documentation created by following contributors and released under CC BY-SA 3.0