Mobile Element not import in eclipse java (Appium)

driver = new Appium Driver<Mobile Element>(cap);

I watched “Appium Beginner Tutorial 7 | First Appium Project with Java” and in this video the upper command work . But , when i use this command then found error . which one is the new element as compatible to Mobile Element.

This is my full code

package appiumtests;

import org.openqa.selenium.remote.DesiredCapabilities;

import io.appium.java_client.AppiumDriver;

public class calculatorTest {

static AppiumDriver driver;

public static void main(String[] args) {

public static void openCalculator(){
	DesiredCapabilities cap = new DesiredCapabilities();
	cap.setCapability("deviceName","Redmi Note 7S");
	cap.setCapability("udid", "39aded9");
	cap.setCapability("platformname", "Android");
	cap.setCapability("platformVersion", "10 QKQ1.190910.002");
	cap.setCapability("appPackage", "com.miui.calculator12.3.16");
	cap.setCapability("appActivity", "");
	driver = new AppiumDriver<MobileElement>(cap);


not valid any more from some version of java-client. use WebElement

As WebElement Not working . I tried to automate in Appium using java . using Vysor i try to install automatically App. So, WebElement also not working