An unknown server-side error occurred while processing the command. Original error: An unknown server-side error occurred while processing the command. Original error: unknown error: Failed to forward ports to device 127.0.0.1:62001. No port chosen: . Perhaps your adb version is out of date. ChromeDriver 2.39 and newer require adb version 1.0.38 or newer. Run ‘adb version’ in your terminal of the host device to find your version of adb.
1、首先去DOS窗口中查看adb 版本号
命令:adb version;
2、adb是没有自动升级的命令的,如果想要更新adb的版本,我们可以在网上找到自己想要的版本进行更新;
下载网盘中想要的ADB版本:
链接:https://pan.baidu.com/s/1MpBUp2wVdkH2RTMa5wOL8g
提取码:1w0t
3、假如你下载的是1.0.40的adb压缩包,把它解压后可以找到下面几个文件,并复制
4、找到adb安装的文件夹下的platform-tools文件夹,我这里是安装到了E盘
5、把刚才复制过的文件复制到\platform-tools文件夹里,替换里面对应的文件就行了
6、再次打开DOS窗口,输入命令:adb version 查看adb版本号