title: The type AndroidDriver is not generic; it cannot be parameterized with arguments <MobileElement>
body: <p>I have a simple code in order for automate my phone so it opens chrome by itself and open google.com but I get an error which I'm not sure how to fix.</p>
  
  <p>I have all the updated Jars </p>
  
  <pre><code>package browser_tests;
  
  import java.net.MalformedURLException;
  import java.net.URL;
  import java.io.File;
  import java.io.IOException;
  import java.util.Properties;
  import java.util.concurrent.TimeUnit;
  
  import org.openqa.selenium.remote.DesiredCapabilities;
  import io.appium.java_client.MobileElement;
  import io.appium.java_client.AppiumDriver;
  import io.appium.java_client.android.AndroidDriver;
  
  public class ChromeTest {
  
      public static void main(String[] args) {
  
          //Set the Desired Capabilities
          DesiredCapabilities caps = new DesiredCapabilities();
          caps.setCapability("deviceName", "My Phone");
          caps.setCapability("udid", "77d1232f"); //Give Device ID of your mobile phone
          caps.setCapability("platformName", "Android");
          caps.setCapability("platformVersion", "8.0");
          caps.setCapability("browserName", "Chrome");
          caps.setCapability("noReset", true);
  
          //Set ChromeDriver location
          System.setProperty("webdriver.chrome.driver","C:\\selenium_drivers\\chromedriver.exe");
  
          //Instantiate Appium Driver
          AndroidDriver&lt;MobileElement&gt; driver = null;
          try {
              driver = new AndroidDriver&lt;MobileElement&gt;(new URL("http://0.0.0.0:4723/wd/hub"), caps);
  
          } catch (MalformedURLException e) {
              System.out.println(e.getMessage());
          }
  
          //Open URL in Chrome Browser
          driver.get("http://www.google.com");
      }
  }
  </code></pre>
  
  <p>**Exception in thread "main" java.lang.Error: Unresolved compilation problems: 
      The type AndroidDriver is not generic; it cannot be parameterized with arguments 
      The type AndroidDriver is not generic; it cannot be parameterized with arguments </p>
  
  <pre><code>at browser_tests.ChromeTest.main(ChromeTest.java:31)**
  </code></pre>