This error may appear when acquiring a capture or running a test.
First, try the following:
- Run the test again
- Restart the device
- Delete the io.appium.uiautomator2.server and io.appium.uiautomator2.server.test apps from the list of apps in the device settings
If the above procedure does not solve the problem, select Enable device log in the test run settings dialog.
If you then click the Run button on the edit test screen directly without clicking the Connect button, the test will be run, and you will probably get the same connection error and it will result in Failure.
Send an inquiry, including the log(s), using the Inquire about test failures from the Failure Screen.