title: Android Studio can't connect to AVD or real device
body: <p>My Android Studio version is 2.1.2 in Windows 10. there is no problem before, but today this occurred. And I can not debug my app.   </p>
  
  <p>How to solve ?  </p>
  
  <blockquote>
    <p>emulator: WARNING: VM heap size set below hardware specified minimum of 384MB<br>
    emulator: WARNING: Setting VM heap size to 384MB  </p>
  </blockquote>
  
  <p>And</p>
  
  <blockquote>
    <p>emulator: WARNING: ./android/metrics/metrics_reporter_toolbar.cpp:164: Can't upload usage metrics: Error </p>
  </blockquote>
  
  <p><a href="http://i.stack.imgur.com/rZFcz.png" rel="nofollow">Run</a></p>
  
  <p><a href="http://i.stack.imgur.com/p71S9.png" rel="nofollow">Event Log</a></p>