Getting AppiumDriver cannot be resolved to a type

Hi All,

Iam getting “AppiumDriver cannot be resolved to a type” error when i initiated the driver for the page factory created for a specif page.

Login log = PageFactory.initElements(driver, Login.class );

Following code used to work before i started working with POM,

RemoteWebDriver driver = new RemoteWebDriver(new URL(“”), cap);