Driver.swipe() get unknown server-side error for Android

Hi,

When I use swipe() for Android I get message “org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command.”
It is in NATIVE_APP context, Appium version is 1.6.5, and the exact same code work perfectly fine for iOS.

    Dimension dim = driver.manage().window().getSize();
    int x = dim.getWidth();
    int yStart = (int)(dim.getHeight()*0.8);
    int yEnd = (int)(dim.getHeight()*0.2);
    driver.swipe(x, yStart, x, yEnd, 1000);

Could anyone help me with this?

ADDED:
[AndroidBootstrap] Sending command to android: {“cmd”:“action”,“action”:“swipe”,“params”:{“startX”:768,“startY”:1561,“endX”:768,“endY”:1366,“steps”:28}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {“cmd”:“action”,“action”:“swipe”,“params”:{“startX”:768,“startY”:1561,“endX”:768,“endY”:1366,“steps”:28}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: swipe
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Display bounds: [0,0][1536,1952]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Display bounds: [0,0][1536,1952]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Swiping from [x=768.0, y=1561.0] to [x=768.0, y=1366.0] with steps: 28
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {“status”:13,“value”:“The swipe did not complete successfully”}