When solving adb push, adb: error: failed to copy '...: remote No such file or directory is displayed

Project scenario:

Push the project compiled in the virtual machine to the embedded side to run, execute

adb push install/rknn_mmWave_demo/ userdata

but keeps showing

adb: error: failed to copy ‘install/rknn_mmWave_demo/iwr6843_demo.cfg’ to ‘userdata/rknn_mmWave_demo/iwr6843_demo.cfg’: remote No such file or directory

insert image description here

solution:

Add / in front of the directory to push
implement

adb push install/rknn_mmWave_demo/ /userdata

insert image description here

reason:

For the path to push: Although it is in the root directory, press tab to recognize it for automatic filling, but the push command may not recognize this path because / is missing! As a result, the path cannot be found, so the push fails.

end

Guess you like

Origin blog.csdn.net/z5z5z5z56/article/details/125935909