Appium: adb server version (31) doesn't match this client (36)
运行Appium脚本时程序报错(adb server version (31) doesn't match this client (36); killing..." shell pm packages ... with code 1{"stdout":"","stderr":"error: device 'adb server version (31) doesn't match this client (36); killing...' not found\n","code":1}),网上找了半天也没有解决,最终通过删掉/Users/my_user_name/Library/Android/中的sdk文件,然后再将自己Android sdk路径中的sdk复制到/Users/my_user_name/Library/Android/中,问题完美解决。
更新了sdk之后又出现了相同的问题([AndroidDriver] Using device: adb server version (31) doesn't match this client (39); killing...),通过相同的方法,顺利解决。
网友评论