org.openqa.selenium.WebDriverException: org.apache.http.conn.HttpHostConnectException: Connect to 127.0.0.1:4712 [/127.0.0.1] failed: Connection refused: connect

Exception in thread “main” org.openqa.selenium.WebDriverException: org.apache.http.conn.HttpHostConnectException: Connect to 127.0.0.1:4712 [/127.0.0.1] failed: Connection refused: connect
Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’
System info: host: ‘INSPIRON’, ip: ‘192.168.1.34’, os.name: ‘Windows 8.1’, os.arch: ‘amd64’, os.version: ‘6.3’, java.version: ‘1.8.0_40’
Driver info: driver.version: AndroidDriver

Were you able to fix this issue?

I had a similar a couple of times. The first time it went away after restarting my machine. However, the second time it took me two days to launch the app successfully again. I uninstalled/installed anything Appium related and ended up getting it to work again.