title: Xamarin UI test
body: <p>I am trying to run a simple Xamarin UI test. I have already set ANDROID_HOME variable but test still throw exception (see image). I am using Microsoft Visual Studio Professional 2019 Version 16.8.1.
  Path of my android sdk is C:\Program Files (x86)\Android\android-sdk. I have installed platfroms since 25...</p>
  <p><a href="https://i.stack.imgur.com/D28rA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D28rA.png" alt="SDK not found" /></a></p>
  <p><a href="https://i.stack.imgur.com/WXUVp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WXUVp.png" alt="enter image description here" /></a></p>
  <p>EDIT
  I made changes in user variables (add also a JAVA_HOME variable). Still not work. (see image).</p>
  <p><a href="https://i.stack.imgur.com/9pbJh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9pbJh.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/z4NHT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/z4NHT.png" alt="enter image description here" /></a></p>
  <p><strong>EDIT 2</strong>
  <strong>RESOLVED</strong>
  The problem was that i have multiple paths in ANDROID_HOME variable (as Cheesebaron mentioned in the comments). There is a variable in System variables called &quot;Path&quot; (which i didn't notice) that you need to modified and add %ANDROID_HOME%\tools and %ANDROID_HOME%\platform-tools. In the same way you have to add JAVA_HOME variable (as in Junior Jiang answer).</p>