I'm getting below error: org.openqa.selenium.SessionNotCreatedException

I’m getting below error: org.openqa.selenium.SessionNotCreatedException: Could not start a new session.

Response code 400.

Message: To use automation on desktop and virtual devices use http://hub.lambdatest.com/wd/hub also on the console it shows the error as : I just upgraded my Appium client library to v8.3.0. DesirtedCapabilities class is deprecated and we need to use UiAutomatorOptions2 class. I need local path of the app to set the below option

Hi Mark,

Please pass the capabilities as per the W3C Protocol and it will work.