I have Installed, appium and the driver as well but I am struggling

133 Views Asked by At

I have installed Appium. UIautomator 2 driver also added dependencies for all of the required tools but I am getting an exception named as

Unable to create a new remote session. Please check the server log for more details. Original error: The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped resource (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 184 milliseconds

I am posting my code as well

Code

I am trying to run Appium but Its not working already I have installed android studio, everything I tried but its not happening first tine I am trying StackOverflow for the support

1

There are 1 best solutions below

0
Kapil Sahu On BEST ANSWER

It's hard to know the exact reason for your issue but you can try the following things.

  • Check if your internet is working correctly
  • Check Appium server port
    • If you are running tests on a physical device then use 4724
    • In the case of an emulator use port 4723
  • Try re-installing the UI Automator driver and Appium inspector

I faced a similar type of error and fixed it by changing the Appium server port from 4723 to 4724.