Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure

Hi All,

I’m new to Appium and Eclipse,by doing some R&D i have written the java code in Eclipse.
Below are the description on the code
Machine: MAC OS
IDE: Eclipse
Server:Appium
Device:Android
Appium Sever: i have selected the android option and launched the server.
Description: Testing to launch the app in android emulator.

Issue: Selecting the option Run As JUnit test ,the error message displays as
“org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Build info: version: ‘unknown’, revision: ‘1969d75’, time: ‘2016-10-18 09:43:45 -0700’
System info: host: ‘Soumyas-MBP.fios-router.home’, ip: ‘192.168.1.152’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.12.3’, java.version: ‘1.8.0_121’”

Please let me know how to resolve this in on MAC machine

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.remote.DesiredCapabilities;

import io.appium.java_client.android.AndroidDriver;
import io.appium.java_client.remote.MobileCapabilityType;

import java.io.*;

import java.net.MalformedURLException;

public class AndroidTest {
AndroidDriver driver;
@Test
public void setUp() throws Exception {
File appDir = new File(“src”);
File app=new File(appDir,“com.bt.bms_5.0.13.apk”);
DesiredCapabilities capabilities=new DesiredCapabilities();
capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, “Android Emulator”);
capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, “Android”);
capabilities.setCapability(MobileCapabilityType.APP,app.getAbsolutePath());

	 driver = new AndroidDriver(new java.net.URL("https://127.0.0.1:4723/wd/hub"), capabilities);

}

}

I’m having same issue. Did you find the solution to that problem