Error when trying to use espresso instead of uiautomator

Maybe forget to add Espresso into test build -> https://developer.android.com/training/testing/ui-testing/espresso-testing?

‘uiautomator2’ does not need any changes in app but Espresso needs.

also read https://github.com/appium/appium-espresso-driver