appium inspector 运行报错Failed to create session. An unknown server-side error occurred while processing the command. Oriainalerror: Cannot start the 'com.tencent.wework' application.

问题

appium inspector执行后,报错:

解决

添加启动参数:"appium:appWaitForLaunch": "false",并且设置了appium:platformVersionappium:appActivity参数。

{
  "platformName": "Android",
  "appium:platformVersion": "12",
  "appium:deviceName": "4c740d8e",
  "appium:appPackage": "com.tencent.wework",
  "appium:appActivity": ".launch.LaunchSplashActivity",
  # 不清空缓存
  "appium:noReset": true,
  "appium:appWaitForLaunch": "false"
}

参考官方帖子: Sometimes I got next error: An unknown server-side error occurred while processing the command. Original error: Cannot start the application · Issue #12178 · appium/appium (github.com)