title: The constructor RemoteWebDriver(Capabilities) refers to the missing type Capabilities
body: <p>I am using Appium for android.<br>
  I am trying to set DesiredCapabilities like this:<br></p>
  
  <pre><code>DesiredCapabilities capabilities = new DesiredCapabilities();
           capabilities.setCapability("BROWSER_NAME", "Android");
             capabilities.setCapability("platformName", "Android");
              capabilities.setCapability("deviceName", "Android");
  
  capabilities.setCapability("appPackage","com.gauravdubey.gdlearning");  
              capabilities.setCapability("appActivity","com.gauravdubey.gdlearning.MainActivity");
  </code></pre>
  
  <p><br>
  (The lines below give the error - The constructor RemoteWebDriver(Capabilities) refers to the missing type Capabilities)
  <br></p>
  
  <pre><code>WebDriver driver=new RemoteWebDriver(new URL("http://127.0.0.1:4723/wd/hub"),capabilities);
  </code></pre>
  
  <p>However the defintion asks for the same thing- one Url obejct and one of Desired Capabilities. <br>I cannot find what the exact problem is.
  <br>
  <strong>UPDATE:</strong>
  I tried by changing <strong>RemoteWebDriver</strong> to <strong>AndroidDriver</strong> - but it then says:<br>The type org.openqa.selenium.remote.service.DriverService$Builder cannot be resolved. It is indirectly referenced from required .class files <br><strong><em>The dependencies added are</em></strong> :<br>
  • Java-client-2.1.0.jar
  • Selenium-server-standalone-2.46.0.jar</p>