How to resolve org.openqa.selenium.SessionNotCreatedException in Appium

I’m running my first test in Appium Test. And using Nexus 5 as an emulator.  Through my test script, I’m doing addition of 2 numbers using calculator app. Stack Trace below:

org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: Command failed: C:\WINDOWS\system32\cmd.exe /s /c “C:\AndroidSDK\platform-tools\adb.exe -s emulator-5554 forward tcp:4724 tcp:4724”
error: cannot bind listener: cannot bind to 127.0.0.1:4724: Only one usage of each socket address (protocol/network address/port) is normally permitted. (10048)
) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 7.80 seconds.

My Code:

Could you please help?

Thanks

 

Default Asked on November 21, 2017 in Appium.
Add Comment
  • 0 Answer(s)
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.