$ 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.oWindows 10
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
.
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