title: IntelliJ + Selenium + Appium Unable to find an active device or emulator with OS emulator 5554
body: <p>I'm trying to open a Android device using Appium + Selenium. I have already made the virtual smartphone and I get an Error.</p>
  
  <p>This is My Java code: </p>
  
  <pre><code>         @Then("^I want to build a smartphone$")
           public void i_want_to_build_a_smartphone() throws MalformedURLException {
  
              DesiredCapabilities capabilities = new DesiredCapabilities();
  
              capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, "Android");
              capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, "emulator-5554");
              capabilities.setCapability(MobileCapabilityType.BROWSER_NAME, "Chrome");
              capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, "Android Emulator");
              capabilities.setCapability(MobileCapabilityType.BROWSER_NAME, "Browser");
              mobiledriver = new AndroidDriver&lt;&gt;(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);
              //Connect to the webDriver server
      }
  </code></pre>
  
  <p>And this is the Error I'm getting</p>
  
  <pre><code>org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Unable to find an active device or emulator with OS emulator 5554. The following are available: emulator-5554 (8.1.0)
  </code></pre>
  
  <p>Build info: <code>version: '3.11.0', revision: 'e59cfb3', time: '2018-03-11T20:26:55.152Z'</code></p>