title: Unable to initialise appium driver
body: <p>I am unable to initialize appium driver. Please help.</p>
  
  <p>I am getting below error message while initializing it:</p>
  
  <pre><code>Exception in thread "main" java.lang.NoSuchMethodError: org.openqa.selenium.remote.http.HttpClient$Factory.createDefault()Lorg/openqa/selenium/remote/http/HttpClient$Factory;
      at io.appium.java_client.remote.AppiumCommandExecutor.&lt;init&gt;(AppiumCommandExecutor.java:93)
      at io.appium.java_client.AppiumDriver.&lt;init&gt;(AppiumDriver.java:93)
      at io.appium.java_client.android.AndroidDriver.&lt;init&gt;(AndroidDriver.java:95)
      at com.xceedance.framework.Hybrid.AppiumWebsite.main(AppiumWebsite.java:53)
  </code></pre>
  
  <p>I used the below code-</p>
  
  <pre><code> AppiumDriver driver;
   DesiredCapabilities capability = new DesiredCapabilities();
  
   capability.setCapability("deviceName","emulator-5554");
  
   capability.setCapability(MobileCapabilityType.AUTOMATION_NAME, "uiautomator2");
   capability.setCapability("browserName","Chrome");
  
   capability.setCapability("platformName","Android");
  
   capability.setCapability(MobileCapabilityType.PLATFORM_VERSION, "7.1.1");
  
   capability.setCapability("appPackage","com.android.chrome");
  
   capability.setCapability("appActivity", "com.google.android.apps.chrome.Main");
  
    driver=new AndroidDriver(new URL("http://127.0.0.1:4723/wd/hub"),capability);
  </code></pre>