title: I/O Error Connection refused android studio
body: <p>WhenI run a project in android studio, I get this error - <strong>I/O Error: Connection refused</strong></p>
  
  <h2>The emulator starts fine but doesn't pull in/reflect my project</h2>
  
  <pre><code>Device connected: emulator-5554
  Device is online: emulator-5554
  Target device: Nexus4 [emulator-5554]
  Uploading file
  local path: /Users/martinsjolte/AndroidStudioProjects/FirstAPP1/Firstapp1/build/apk/Firstapp1-debug-unaligned.apk
  remote path: /data/local/tmp/dk.first.Firstapp1
  Installing dk.first.Firstapp1
  DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/dk.first.Firstapp1"
  Device disconnected: emulator-5554
  
  Launching application: dk.first.Firstapp1/dk.first.Firstapp1.MainActivity.
  DEVICE SHELL COMMAND: am start -n "dk.first.Firstapp1/dk.first.Firstapp1.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
  </code></pre>
  
  <h2>    <strong>I/O Error: Connection refused</strong></h2>
  
  <p>My platform is a mac osx ver.12.9.1</p>