Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

/system/bin/sh: adb: not found

Tags:

android

$ adb shell
# mkdir data/local/tmp/testjars
# exit

That works fine and gives no errors, but when I do:

$ adb push <project_root_folder>/app/build/outputs/apk/app-debug.apk data/local/tmp/testjar/load.apk

I get the error:

/system/bin/sh: adb: not found

What am I missing? How can I fix this?

UPDATE


Im deploying my app on Virtual devices (Nexus 5).

Android Studio 2.2.3
Build #AI-145.3537739, built on December 2, 2016
JRE: 1.8.0_76-release-b03 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

Windows 10

like image 654
Program-Me-Rev Avatar asked Mar 10 '23 06:03

Program-Me-Rev


1 Answers

It looks like you are trying to run adb on the device itself. To push files start adb on the host computer. To disconnect your adb shell session type exit.

You can not run adb push on the android shell. You have to run it on the host computer.

If this is not the case, post the output of echo $PATH.

like image 175
Jonas Köritz Avatar answered Mar 20 '23 18:03

Jonas Köritz