Getting error when i executed these pgm

package co.abhriya.sixdegrees;

import io.appium.java_client.android.AndroidDriver;
import io.appium.java_client.android.AndroidElement;

import java.net.MalformedURLException;
import java.net.URL;
import java.util.concurrent.TimeUnit;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;

public class SixDegreesGetStarted {

AndroidDriver<AndroidElement> driver;

@BeforeMethod

public void setup() throws MalformedURLException{
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(“deviceName”,“Nexus 5”);
capabilities.setCapability(“platformVersion”, “5.0.1”);
capabilities.setCapability(“platformName”,“Android” );
capabilities.setCapability(“appPackage”, “co.abhriya.sixdegrees”);
capabilities.setCapability(“appActivity”, “co.abhriya.sixdegrees.android.WelcomeScreen”);
driver=new AndroidDriver(new URL(“http://127.0.0.1:4723/wd/hub”), capabilities);
driver.manage().timeouts().implicitlyWait(20,TimeUnit.SECONDS);

}

@Test

public void getStarted() {

WebElement wel=driver.findElementByName(“Welcome”);
assert wel.getText().equals(“Welcome”);

WebElement wel3=driver.findElementByName(“Learn More”);
assert wel3.getText().equals(“Learn More”);

//driver.findElement(By.name(“Get Started”)).click();
//assert wel1.getText().equals(“startBtn”);

driver.findElementByName("Learn More").click();


//driver.findElement(By.id("startBtn")).click();

driver.swipe( 900, 1000, 100, 1000, 30);
driver.manage().timeouts().implicitlyWait(20,TimeUnit.SECONDS);
driver.swipe( 900, 1000, 100, 1000, 30);


}

@AfterMethod
public void tearDown() 
{
    driver.quit();

   
     }

}

[TestNG] Running:
/private/var/folders/gg/wrjl1s754hd3rhlgrr6cjnq80000gp/T/testng-eclipse-1165066682/testng-customsuite.xml

FAILED CONFIGURATION: @BeforeMethod setup
java.lang.NoSuchMethodError: io.appium.java_client.android.AndroidDriver.substituteMobilePlatform(Lorg/openqa/selenium/Capabilities;Ljava/lang/String;)Lorg/openqa/selenium/Capabilities;