title: Unable to test app on physical device using android studio
body: <p><a href="https://i.stack.imgur.com/p9XoE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/p9XoE.png" alt="enter image description here" /></a>I am trying to test the demo app on a physical Android device (Xiaomi redmi note 7 pro) from the android studio but I am getting the errors listed in this image attached.</p>
  <p>It says that</p>
  <p>adb server version (32) doesn't match this client (41); killing...</p>
  <ul>
  <li>daemon started successfully</li>
  </ul>
  <p>Adb connection Error:An existing connection was forcibly closed by the remote host</p>
  <p>Unable to open connection to: localhost/127.0.0.1:5037, due to: java.net.ConnectException: Connection refused: connect</p>
  <p>Cannot reach ADB server, attempting to reconnect.</p>
  <ul>
  <li><p>daemon not running; starting now at tcp:5037</p>
  </li>
  <li><p>daemon started successfully</p>
  </li>
  </ul>
  <p>&quot;Adb connection Error:An existing connection was forcibly closed by the remote host&quot;</p>