Unable to swipe in Appium Inspector

I’m able to tap, send text and do pretty much everything in Inspector I need to, except swipe. Does anybody know what it is I’m doing incorrectly? Thank you!

import io.appium.java_client.AppiumDriver;
import org.openqa.selenium.remote.DesiredCapabilities;
import java.net.URL;

public class {scriptName} {
public static void main(String[] args) {
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(“appium-version”, “1.0”);
capabilities.setCapability(“platformName”, “Android”);
capabilities.setCapability(“platformVersion”, “5.0.1”);
capabilities.setCapability(“deviceName”, “TestPhone”);
capabilities.setCapability(“app”, “/Users/chrisgarrett/Downloads/app-favour-debug-v1.3.0.apk”);
wd = new AppiumDriver(new URL(“http://0.0.0.0:4723/wd/hub”), capabilities);
wd.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);
wd.findElement(By.xpath("//android.widget.LinearLayout[1]/android.widget.FrameLayout[1]/android.widget.RelativeLayout[1]/android.widget.ListView[1]/android.widget.RelativeLayout[1]/android.widget.ImageView[1]")).click();
wd.findElement(By.xpath("//android.widget.LinearLayout[1]/android.widget.FrameLayout[1]/android.widget.FrameLayout[1]/android.widget.FrameLayout[1]/android.widget.LinearLayout[1]/android.widget.Button[1]")).click();
(JavascriptExecutor)wd.executeScript(“mobile: swipe”, new HashMap<String, Double>() {{ put(“touchCount”, 1); put(“startX”, 694); put(“startY”, 668); put(“endX”, 376); put(“endY”, 671); put(“duration”, 0.5); }});
(JavascriptExecutor)wd.executeScript(“mobile: swipe”, new HashMap<String, Double>() {{ put(“touchCount”, 1); put(“startX”, 751); put(“startY”, 635); put(“endX”, 246); put(“endY”, 644); put(“duration”, 0.5); }});
wd.close();
}
}