sdkmanager command not found

In this troubleshooting guide we learn how to fix sdkmanager command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

sdkmanager: command not found

or when using sudo you get the following error message

sudo: sdkmanager: command not found

Solutions to sdkmanager: command not found

How To Fix sdkmanager: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu sdkmanager is provided by sdkmanager package.

sdkmanager is:

A drop-in replacement for sdkmanager from the Android SDK written in Python. It implements the exact API of the sdkmanager (https://developer.android.com/studio/command-line/sdkmanager) command line. It only deviates from that API if it can be done while being 100% compatible.

The project also attempts to maintain the same terminal output so it can be compatible with things that scrape sdkmanager output.

To fix this problem, we can install more using the command below.

sudo apt-get -y install sdkmanager

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install sdkmanager.

sudo apt -y install sdkmanager

Or if you have aptitude installed you can use the following command.

sudo aptitude install sdkmanager

Summary

In this tutorial we learn how to fix sdkmanager command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.