title: Mac: Android Studio ADB doesn't recognise any Emulator or USB device
body: <p>When I try to run a Project in Emulator or USB Device, Android Studio doesn't detect any device connected (<a href="http://prntscr.com/k99lpm" rel="nofollow noreferrer">http://prntscr.com/k99lpm</a>). While if I run the &quot;adb devices&quot; command in terminal I can see connected devices.</p>
  <p>When I use Emulator In Project Configuration ( <a href="http://prntscr.com/k99mm1" rel="nofollow noreferrer">http://prntscr.com/k99mm1</a> ) I got the Emulator running, Got Gradle error &quot;0&quot;. and gives me error ( log below )</p>
  <blockquote>
  <p>00:17 Gradle sync finished in 362ms (from cached state)</p>
  <p>00:46 Error running 'app': No target device found.</p>
  <p>00:46 Could not open Selected VM debug port (8700). Make sure you do not have another instance of DDMS or of the eclipse plugin running. If it's being used by something else, choose a new port number in the preferences.</p>
  <p>00:46 * daemon not running; starting now at tcp:5037</p>
  <p>00:46 Executing tasks: [:app:assembleDebug]</p>
  <p>00:46 * daemon started successfully</p>
  <p>00:46 Gradle build finished in 9s 938ms</p>
  <p>00:47 Executing tasks: [:app:assembleDebug]</p>
  <p>00:47 Gradle build finished in 1s 45ms</p>
  <p>00:47 Unable to open connection to: localhost/192.168.1.12:5037, due to: java.net.ConnectException: Operation timed out</p>
  <p>00:47 Connection attempts: 1</p>
  <p>00:48 Could not open Selected VM debug port (8700). Make sure you do not have another instance of DDMS or of the eclipse plugin running. If it's being used by something else, choose a new port number in the preferences.</p>
  <p>00:48 * daemon not running; starting now at tcp:5037</p>
  <p>00:48 * daemon started successfully</p>
  <p>00:48 Unable to open connection to: localhost/192.168.1.12:5037, due to: java.net.ConnectException: Operation timed out</p>
  <p>00:48 Connection attempts: 2</p>
  </blockquote>
  <p>and shows no ADB device running while emulator is on and gives error that unable to establish connection to adb Screenshot <a href="http://prntscr.com/k9bj2q" rel="nofollow noreferrer">http://prntscr.com/k9bj2q</a></p>
  <p>Any Help would be appreciated. thanks</p>