title: Android device and Unity connection failure
body: <p>I'm trying to debug Unity game from PC with Windows 10 to Android phone:</p>
  
  <ol>
  <li>In Unity from <code>File &gt; Build Settings</code> I've <code>Switch Platform</code> to Android </li>
  <li>In Android device I've downloaded and installed Unity Remote 5 application. </li>
  <li>In phone <code>Settings/About phone</code> with 7 taps on <code>Build number</code> I get <code>Developer Options</code> and turned on USB debugging and tap on Revoke USB debugging authorization </li>
  <li>In Select USB Configuration I've checked PTP (Picture Transfer Protocol)</li>
  </ol>
  
  <p>I've checked 2 different USB cables with 3 different phones and each device is successfully detected and recognized by PC OS, Unity Remote says <em>"Connect this device with a USB Cable to your computer. Press PLAY in the Unity Editor to test"</em>, but Unity Editor by some reason does not shows any of my devices in <code>Edit &gt; Project Settings &gt; Editor</code> device:</p>
  
  <p><a href="https://i.stack.imgur.com/gW80J.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gW80J.png" alt="enter image description here"></a></p>
  
  <p><strong>edit:</strong></p>
  
  <p>I've downloaded both <a href="https://developer.android.com/studio/" rel="nofollow noreferrer">Android Studio</a> and separately <code>sdk-tools-windows-4333796.exe</code> from <em>Command line tools only</em>. </p>
  
  <p>First I've installed from <a href="https://www.oracle.com/java/technologies/javase-jdk8-downloads.html" rel="nofollow noreferrer">Java SE Development Kit 8u241</a> <code>jdk-8u241-windows-x64.exe</code> for Windows x64    </p>
  
  <p>In Windows 10 OS <code>Environment Variables/System Variables/Path</code>, I've added <code>C:\Program Files\Java\jdk1.8.0_241\bin</code> and <code>C:\Program Files\Java\jre1.8.0_241\bin</code></p>
  
  <p>In User Variables I've added <em>Variable name</em>: <code>JAVA_HOME</code> and <em>Variable value</em>: <code>C:\Program Files\Java\jdk1.8.0_241\bin</code></p>
  
  <p>So, first I did not used  <code>sdk-tools-windows-4333796.exe</code> and have installed Android Studio, here is what  <code>Edit &gt; Preferences &gt; External Tools</code> shows:</p>
  
  <p><a href="https://i.stack.imgur.com/aQEw6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aQEw6.png" alt="enter image description here"></a></p>
  
  <p>Then, I've removed Android Studio and tried to use only <code>sdk-tools-windows-4333796.exe</code>, I've extracted <code>tools</code> folder to previously created folders path <code>C:\Android\android-sdk</code>,  then from <code>C:\Android\android-sdk\tools\bin</code> load <code>sdkmanager.bat</code> with <code>"platform;android-25"</code> or <code>"platform;android-26"</code> argument, but error says:</p>
  
  <blockquote>
    <p>Warning: File C:\Users\User.android\repositories.cfg could not be
    loaded. Warning: Failed to find package platform;android-25 [===<br>
    ] 10% Computing updates... C:\Android\android-sdk\tools\bin></p>
  </blockquote>
  
  <p>And finally I've tried install with Unity Hub:</p>
  
  <p><a href="https://i.stack.imgur.com/5lqz4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5lqz4.png" alt="enter image description here"></a></p>
  
  <p>but it same result, device does not appears in Editor, and External Tools shows checked:</p>
  
  <p><a href="https://i.stack.imgur.com/eE3RB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eE3RB.png" alt="enter image description here"></a></p>
  
  <p>and if unchecked:</p>
  
  <p><a href="https://i.stack.imgur.com/iiMGG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iiMGG.png" alt="enter image description here"></a></p>
  
  <p>I'm not quite sure, what I've missed or what I'm doing incorrectly</p>
  
  <p>Any guide, advice or example would be helpful </p>