不能 运行 命令 "adb reverse" 因为它不存在

Can not run the command "adb reverse" because it does not exists

我正在尝试 运行 我的本机反应应用 android。文档说我需要 运行 "adb reverse tcp:8081 tcp:8081"

但是我的 adb(版本 1.0.31)没有 "reverse" 命令。

adb 文档 (https://developer.android.com/studio/command-line/adb.html#commandsummary) 也没有提到这个命令。

他们删除了吗?有解决方法吗?

嗯嗯,好的,看起来 1.0.31 版本太旧了。而且看起来官方文档已经完全过时了。

我安装了 1.0.31,因为我是通过 apt-get 安装的

AndroidStudio安装的版本是1.0.36版本,还有reverse命令

我之前遇到过同样的问题,所以我去了adb的位置:

C:\Users\YOUR_USER\AppData\Local\Android\Sdk\platform-tools

我运行命令,它起作用了。