I'm trying to install an apk file in my emulator. I navigated to the directory where the apk file is and typed adb install [name of file].apk
I received this response:
-bash: adb: command not found
What should I do? Please keep it simple as I don't know much about this.
Type "which adb" in the terminal and see the location of the adb. If no location/ path to adb is displayed, then you should add the location of the platform-tools folder from the android sdk in the system PATH variable.
export PATH=$PATH:/home/path_to_android_sdk/platform-tools
Also, to make the change permanent, you could edit the .bashrc file and add the above line at the end. Save and execute .bashrc.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With