org.openqa.selenium.WebDriverException: Returned value cannot be converted to WebElement

It’s a configuration issue. Watch below video to resolve

Hi, I’m new to learning appium. I’m getting errors while using “Tap”, “TouchAction”, “swipe” etc.
Appium Version: 1.22.0
Java Client: 8.0.0 beta
Selenium-Java 4.1.0

Should I downgrade any version? or have any alternate solution?