手机投屏软件正常投屏
已经删除手机投屏软件
连接手机,appium闪现,后两三秒后出现连接失败
2024-08-21 06:47:10,555 [28] [INFO] : [35m[UiAutomator2][39m Did not get confirmation UiAutomator2 deleteSession worked; Error was: UnknownError: An unknown server-side error occurred while processing the command. Original error: Trying to proxy a session command without session id
2024-08-21 06:47:10,610 [28] [INFO] : [35m[UiAutomator2][39m Restoring hidden api policy to the device default configuration
2024-08-21 06:47:10,720 [28] [INFO] : [35m[HTTP][39m [37m<-- POST /wd/hub/session [39m[31m500[39m [90m2294 ms - 1213[39m
2024-08-21 06:47:10,721 [28] [INFO] : [35m[HTTP][39m [90m[39m
2024-08-21 06:47:10,720 [5] [WARN] : MobileSessionFactory.CreateSession error:
OpenQA.Selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Cannot verify the signature of 'C:\ProgramData\ShadowBot\support_x64\mobile\NodeJS\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.21.1.apk'. Original error: Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.Appium.AppiumDriver`1.Execute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities)
at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities)
at OpenQA.Selenium.Appium.AppiumDriver`1..ctor(ICommandExecutor commandExecutor, ICapabilities appiumOptions)
at OpenQA.Selenium.Appium.AppiumDriver`1..ctor(Uri remoteAddress, ICapabilities appiumOptions, TimeSpan commandTimeout)
at OpenQA.Selenium.Appium.AppiumDriver`1..ctor(Uri remoteAddress, ICapabilities appiumOptions)
at ShadowBot.Mobile.Provider.Automation.MobileSessionFactory.CreateSession(MobileInfo mobileInfo) in D:\Work\xbot\src\support\mobile\ShadowBot.Mobile.Provider\Automation\MobileSessionFactory.cs:line 52
2024-08-21 06:47:10,722 [5] [WARN] : Method: Mobile.CreateSession
Params: {
"udid": "127.0.0.1:7555",
"platformName": "Android",
"platformVersion": "12",
"additionalCapabilities": {
"newCommandTimeout": "0"
}
}
System.Exception: 请检查移动设备是否已连接
at ShadowBot.Mobile.Provider.Automation.MobileSessionFactory.CreateSession(MobileInfo mobileInfo) in D:\Work\xbot\src\support\mobile\ShadowBot.Mobile.Provider\Automation\MobileSessionFactory.cs:line 59
at ShadowBot.Mobile.Provider.Services.MobileService.CreateSession(String udid, String platformName, String platformVersion, Dictionary`2 additionalCapabilities) in D:\Work\xbot\src\support\mobile\ShadowBot.Mobile.Provider\Services\MobileService.cs:line 69
at lambda_method8(Closure , IPCBaseService , Object[] )
at ShadowBot.Common.IPC.IPCActionInvoker.Execute(IPCBaseService service, IPCRequest request) in D:\Work\xbot\src\client\ShadowBot.Common\IPC\IPCActionInvoker.cs:line 65
at ShadowBot.Common.IPC.IPCActionInfo.Execute(IPCBaseService service, IPCContext context) in D:\Work\xbot\src\client\ShadowBot.Common\IPC\IPCActionInfo.cs:line 38
at ShadowBot.Common.IPC.IPCServiceInfo.Execute(IPCContext context) in D:\Work\xbot\src\client\ShadowBot.Common\IPC\IPCServiceInfo.cs:line 54