Download android-sdk or install it via apt sudo apt update && sudo apt install android-sdk add path in ~/.bashrc # Export the Android SDK path export ANDROID_HOME=$HOME/android-sdk export PATH=$PATH:$ANDROID_HOME/tools/bin export PATH=$PATH:$ANDROID_HOME/platform-tools Repo is built on particular functionality from Python 2.x and is incompatible with Python 3. To use Repo, install Python 2.x: apt-get install python Wrong java version. 1.8 or 9 is required. //CTS which java java --version sudo apt-get remove openjdk* sudo apt-get install openjdk-8-jdk sudo update-java-alternatives -l sudo update-java-alternatives -s java-1.8.0-openjdk-amd64 update-alternatives --config java CTS require JDK version: Java Development Kit for Ubuntu Install the proper version of Java Development Kit (JDK) . For Android 11, install OpenJDK11. For Android 9 and Android 10, install OpenJDK9. For Android 7.0, 7.1, 8.0 and 8.1, install OpenJDK8.