This error may appear when acquiring a capture or running a test.
First, try the following:
- Run the test again
- Relaunch device
- Delete the appium.uiautomator2.server and io.appium.uiautomator2.server.test app from the list of apps in the device settings
If the above procedure does not solve the problem, check “Enable Device Log” in the test execution settings.
If you then press the "Run" button on the Edit test screen directly without pressing 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 Inquiries about Test Failures from the Failure Screen.