TouchActions action throw exception: java.lang.ClassCastException: io.appium.java_client.android.AndroidDriver cannot be cast to org.openqa.selenium.interactions.HasTouchScreen

Hi,

I am getting same error with TouchActions.I have tried with appium java client 6.0.0 as well,still facing the issue.Any help would be appericiated.

Appium Version:1.10.0
jdk Version: 1.8.0_191
java-Client-6.1.0

Error : java.lang.ClassCastException: io.appium.java_client.android.AndroidDriver cannot be cast to org.openqa.selenium.interactions.HasTouchScreen