What you’ll need:
- Path to your Java installation
- Path to your Android SDK installation
- admin password
On windows you’d edit your environment variables, on linux you edit the .bashrc file.
Run this command:
sudo gedit $HOME/.bashrc
prompted for admin password.
Add the following lines to your .bashrc. Please ensure where you installed the Java libraries and your android sdk. The below reflects default installation directories.
Run this command to reload your .bashrc:
Test by typing adb version
You should get something like
Android Debug Bridge version 1.0.26