Unable to run sample appium code on real android device

Hi,

I am new to Appium and am trying to run a basic script on a real device but keep running into the following error:

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.(AppiumCommandExecutor.java:93)
at io.appium.java_client.AppiumDriver.(AppiumDriver.java:93)
at io.appium.java_client.android.AndroidDriver.(AndroidDriver.java:95)
at com.amazon.testudodemo.test.integration.TestLockerplusScenarios.main(TestLockerplusScenarios.java:38)

Process finished with exit code 1

APPIUM VERSION: v1.13.0
JAVA VERSION:
java version “11.0.4” 2019-07-16 LTS
Java™ SE Runtime Environment 18.9 (build 11.0.4+10-LTS)
Java HotSpot™ 64-Bit Server VM 18.9 (build 11.0.4+10-LTS, mixed mode)
ANDROID VERSION:

The code that I am trying to run is:
import java.net.MalformedURLException;
import java.net.URL;
import org.openqa.selenium.remote.DesiredCapabilities;
import io.appium.java_client.AppiumDriver;
import io.appium.java_client.android.AndroidDriver;
import java.util.concurrent.TimeUnit;
import java.io.File;
import io.appium.java_client.MobileElement;
import io.appium.java_client.android.AndroidDriver;
import org.openqa.selenium.remote.http.HttpClient;

public class TestScenarios {

private static AndroidDriver driver;
public static void main(String[] args) {

    //Set the Desired Capabilities
    System.out.println("Setting capabilities.");
    DesiredCapabilities caps = new DesiredCapabilities();

// caps.setCapability(“deviceName”, “TC56CJ”);
caps.setCapability(“platformName”, “Android”);
caps.setCapability(“platformVersion”, “6.0.1”);
caps.setCapability(“udid”, “17282522504450”);
caps.setCapability(“appPackage”, “com.amazon.some.app”);
caps.setCapability(“appActivity”, “com.amazon.some.app.view.login.LoginActivity”);
caps.setCapability(“noReset”, “true”);

    //Instantiate Appium Driver
    try {
        System.out.println("Creating URL");
        URL newURL = new URL("http://0.0.0.0:4723/wd/hub");
        System.out.println("Instantiating Android Driver.");
        driver = new AndroidDriver(newURL, caps);
        System.out.println("Android driver instantiated.");
        driver.manage().timeouts().implicitlyWait(80, TimeUnit.SECONDS);

    } catch (MalformedURLException e) {
        System.out.println(e.getMessage());
    }
}

}