STF 用 STF 远程命令启动 appium 失败,具体报错见详情

wyx · July 18, 2019 · Last by wyx replied at July 18, 2019 · 785 hits

问题描述

STF平台已经搭建好了,也通过>adb connect 10.73.139.59:7421命令,通过adb devices命令,返回结果:10.73.139.59:7421 unauthorized

具体报错

Error
An unknown server-side error occurred while processing the command. Original error: Error getting device API level. Original error: Error executing adbExec. Original error: 'Command 'D:\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 10.73.139.59:7421 shell getprop ro.build.version.sdk' exited with code 1'; Stderr: 'error: device unauthorized.This adb server's $ADB_VENDOR_KEYS is not setTry 'adb kill-server' if that seems wrong.Otherwise check for a confirmation dialog on your device.'; Code: '1'

报错翻译

处理命令时出现未知的服务器端错误。原始错误:获取设备API级别时出错。原始错误:执行adbexec时出错。原始错误:“command”d\:\ \ \ \ android sdk windows \ \ \ \ platform tools \ \ \ \ adb.exe-p 5037-s 10.73.139.59 \:7405 shell getprop ro.build.version.sdk“退出,代码为1”;stderr:“错误:设备未经授权。”未设置此adb服务器的$adb_供应商密钥如果出现错误,请尝试“adb kill server”。否则,请检查设备上的确认对话框。“;代码:”1'

启动配置项

{
"platformName": "Android",
"platformVersion": "8.1.0",
"deviceName": "10.73.139.59:7421",
"udid": "10.73.139.59:7421",
"unicodeKeyboard": "true",
"appActivity": "com.android.mms.ui.MmsTabActivity",
"appPackage": "com.android.mms"
}

共收到 3 条回复 时间 点赞
wyx #1 · July 18, 2019 作者

😂

看到这个unauthorized,我第一反应是设备未授权,设备连上pc后会弹个授权框,没点吗?

wyx #3 · July 18, 2019 作者

没有弹出这个对话框,我也是奇怪

需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up