Espresso driver issue in appium on mac

@mykola-mokhnach

I’m using espresso driver to test the Android apps. I faced following issue while executing the code with espresso driver.
Appium version: 1.12v
Log:

[debug] e[35m[W3C]e[39m Matched W3C error code ‘session not created’ to SessionNotCreatedError
[debug] e[35m[Espresso]e[39m Deleting espresso session
[debug] e[35m[ADB]e[39m Running ‘/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 06157df688265124 shell am force-stop com.xfinityconnect’
[debug] e[35m[Espresso]e[39m [Instrumentation] [STDOUT] io.appium.espressoserver.EspressoServerRunnerTest:INSTRUMENTATION_RESULT: shortMsg=Process crashed.
[debug] e[35m[Espresso]e[39m [Instrumentation] [STDOUT] INSTRUMENTATION_CODE: 0
[debug] e[35m[Logcat]e[39m Stopping logcat capture
[debug] e[35m[ADB]e[39m Removing forwarded port socket connection: 8300
[debug] e[35m[ADB]e[39m Running ‘/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 06157df688265124 forward --remove tcp:8300’
e[35m[Espresso]e[39m Instrumentation process exited with code 0 from signal null
[debug] e[35m[BaseDriver]e[39m Event ‘newSessionStarted’ logged at 1586348230198 (17:47:10 GMT+0530 (India Standard Time))
[debug] e[35m[W3C]e[39m Encountered internal error running command: A new session could not be created. Details: ‘capabilities’ field is mandatory
[debug] e[35m[W3C]e[39m io.appium.espressoserver.lib.handlers.exceptions.SessionNotCreatedException: ‘capabilities’ field is mandatory
[debug] e[35m[W3C]e[39m at io.appium.espressoserver.lib.handlers.CreateSession.handleInternal(CreateSession.kt:32)
[debug] e[35m[W3C]e[39m at io.appium.espressoserver.lib.handlers.CreateSession.handleInternal(CreateSession.kt:27)
[debug] e[35m[W3C]e[39m at io.appium.espressoserver.lib.handlers.RequestHandler$DefaultImpls.handle(RequestHandler.kt:28)
[debug] e[35m[W3C]e[39m at io.appium.espressoserver.lib.handlers.CreateSession.handle(CreateSession.kt:27)
[debug] e[35m[W3C]e[39m at io.appium.espressoserver.lib.handlers.CreateSession.handle(CreateSession.kt:27)
[debug] e[35m[W3C]e[39m at io.appium.espressoserver.lib.http.Router.route(Router.kt:218)
[debug] e[35m[W3C]e[39m at io.appium.espressoserver.lib.http.Server.serve(Server.kt:49)
[debug] e[35m[W3C]e[39m at fi.iki.elonen.NanoHTTPD$HTTPSession.execute(NanoHTTPD.java:945)
[debug] e[35m[W3C]e[39m at fi.iki.elonen.NanoHTTPD$ClientHandler.run(NanoHTTPD.java:192)
[debug] e[35m[W3C]e[39m at java.lang.Thread.run(Thread.java:762)
[debug] e[35m[W3C]e[39m
e[35m[HTTP]e[39m e[37m<-- POST /wd/hub/session e[39me[31m500e[39m e[90m28450 ms - 1038e[39m

Kindly look into this.