Appium with espresso driver - Unable to build Espresso server error

  • maven project
  • java 8
  • android studio
  • android emulator Pixel 3a API 29
  • Gradle 6.3 for espresso server
  • Using IntelliJ
  • environment variables are set

It’s simple demo project. Everything works fine when automationName capability is set to “UiAutomator2”, but I want to use espresso driver in Appium. Whenever I change automationName capability to “Espresso”, following error shows up: [1]: [2]: The command in screenshot does not work in cmd, also that file is located in android studio project(I dont know if it is related or not).