title: cannot find symbol method swipe(int,int,int,int,int)
body: <p>i am performing a test using <code>appium</code> , i am trying to use <code>swipe()</code> function . but it keep on showing this error. it unable to read the function <code>Swipe(),</code> it shows <code>cannot resolve swipe</code>.</p>
  
  <pre><code>public class HorizontalTabscroll
  {
      AppiumDriver driver;
      Dimension size; 
      @Before
      public void testCaseSetup()throws  Exception
      {
  
          DesiredCapabilities cap=new DesiredCapabilities();
          cap.setCapability(MobileCapabilityType.PLATFORM_NAME, "Android");
          cap.setCapability(MobileCapabilityType.DEVICE_NAME, "Android device");
          cap.setCapability(MobileCapabilityType.NEW_COMMAND_TIMEOUT, "4000");
          cap.setCapability(MobileCapabilityType.APP, "c://apks//seekbarsample.apk");
          cap.setCapability("noReset", true);
          driver = new AndroidDriver(new URL("http://127.0.0.1:4723/wd/hub"), cap);
  
      }
  
      @Test
      public void testHorizontalScroll()throws Exception
      {
          for(int i=0;i&lt;4;i++)
          {
              Thread.sleep(2000);
              if (driver.findElement(By.name("tab8")).isDisplayed())
              {
                  driver.findElement(By.name("tab8")).click();
                  break;
              }
              else
              {
                  horizontalScroll();
              }
  
          }
      }
      public void horizontalScroll()
      {
          size=driver.manage().window().getSize();
          int x_start=(int)(size.width*0.60);
          int x_end=(int)(size.width*0.30);
          int y=130;
          driver.swipe(x_start,y,x_end,y,4000);
      }
      @After
      public void testCaseTearDown()
      {
          driver.quit();
      }
  }
  </code></pre>
  
  <hr>
  
  <p>This is error i am getting:-- 
  error: cannot find symbol method swipe(int,int,int,int,int)
  Error:Execution failed for task ':app:compileDebugUnitTestJavaWithJavac'.</p>
  
  <blockquote>
    <p>Compilation failed; see the compiler error output for details.</p>
  </blockquote>