AndroidDriver is initialise to Null

I have created following script. Now when I try to run it multiple error messages are shown.
For debugging purpose I have added the try catch block.
Now the "driver = new AndroidDriver<>(new URL(“http://127.0.0.1:4723/wd/hub”), dc);
System.out.println(“Driver details while initalising are : " + driver);”
this results in command prompt output as.
“Jun 08, 2018 1:14:47 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS
Driver details while initalising are : Android: null
Exception has been handledjava.lang.IllegalMonitorStateException”

All the details of the created script are as shown below.

package com.example.saurabhbadak.appiumtestapp;
import io.appium.java_client.TouchAction;
import io.appium.java_client.remote.AndroidMobileCapabilityType;
import io.appium.java_client.android.AndroidDriver;
import io.appium.java_client.android.AndroidElement;
import io.appium.java_client.remote.MobileCapabilityType;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.By;
import org.junit.*;
import java.net.URL;
import java.net.MalformedURLException;
import java.util.logging.Level;

public class ExampleUnitTest {
private String reportDirectory = “reports”;
private String reportFormat = “xml”;
private String testName = “Untitled”;
private AndroidDriver driver ;

public DesiredCapabilities dc = new DesiredCapabilities();

@Before

public void setUp() throws MalformedURLException {
    dc.setCapability("reportDirectory", reportDirectory);
    dc.setCapability("reportFormat", reportFormat);
    dc.setCapability("testName", testName);
    dc.setCapability("deviceName", "emulator-5554");
    dc.setCapability("autoGrantPermissions","true");
    //dc.setCapability(MobileCapabilityType.UDID, "8S3200073061WT105BV01EV");
    dc.setCapability("app","D://VANSALES_07-05-2018.apk");
    try {
        driver = new AndroidDriver<>(new URL("http://127.0.0.1:4723/wd/hub"), dc);
        System.out.println("Driver details while initalising are : " + driver);
    }catch (Exception e1) {
        System.out.println("Exception has been handled" + e1);
    }

    driver.setLogLevel(Level.INFO);
}

@Test
public void testUntitled() {
    try {
        //new WebDriverWait(driver, 30).until(ExpectedConditions.presenceOfElementLocated(By.id("com.inva.inotify.salessuite:id/loginID")));
        driver.wait(10000);
        }catch (Exception e){
        System.out.println("Exception has been handled" + e);
            }
    try {
        driver.findElement(By.xpath("//*[@contentDescription='1']")).click();
    }catch (Exception e){
        System.out.println("Exception has been handled" + e);
    }
    try {

        driver.findElement(By.xpath("//*[@id='password']")).click();
        driver.findElement(By.xpath("//*[@text='Version No. 1.03']")).click();
        driver.findElement(By.xpath("//*[@contentDescription='v']")).click();
        driver.findElement(By.xpath("//*[@contentDescription='u']")).click();
        driver.findElement(By.xpath("//*[@contentDescription='Symbols']")).click();
        driver.findElement(By.xpath("//*[@contentDescription='0']")).click();
        driver.findElement(By.xpath("//*[@contentDescription='0']")).click();
        driver.findElement(By.xpath("//*[@contentDescription='1']")).click();
        driver.findElement(By.xpath("//*[@contentDescription='Done']")).click();
        driver.findElement(By.xpath("//*[@text='Login']")).click();
    }catch (Exception e){
        System.out.println("Exception has been handled" + e);
    }
    new WebDriverWait(driver, 30).until(ExpectedConditions.presenceOfElementLocated(By.xpath("//*[@contentDescription='Open navigation drawer']")));
    driver.findElement(By.xpath("//*[@contentDescription='Open navigation drawer']")).click();
    new TouchAction(driver).press(320, 806).moveTo(320, 718).release().perform();
    //driver.swipe(320, 806, 320, 718, 600);
    driver.findElement(By.xpath("//*[@contentDescription='Navigate up']")).click();
    driver.findElement(By.xpath("//*[@contentDescription='Open navigation drawer']")).click();
    new TouchAction(driver).press(191, 1035).moveTo(191, 947).release().perform();
    //driver.swipe(191, 1035, 191, 947, 592);
    driver.findElement(By.xpath("//*[@text='Logout']")).click();
    driver.findElement(By.xpath("//*[@text='Yes']")).click();

    }

@After
public void tearDown() {
    if (driver != null)
        driver.quit();
}

}