title: Android SDK error occurs when trying to build an Android Unity game
body: <p>When I try to build Unity project(Android), it says: </p>
  
  <blockquote>
    <p>CommandInvokationFailure: Unable to update the SDK. Please run the SDK
    Manager manually to make sure you have the latest set of tools and the
    required platforms installed.</p>
  </blockquote>
  
  <p>Here are the things I tried to fix it:</p>
  
  <ol>
  <li><p>Add <code>sdk/tool/bin</code> to the path. Then from cmd, I tried <code>cd ~\tools\bin</code> then typed <code>sdkmanager.bat</code>
  but it gives me:</p>
  
  <blockquote>
    <p>Error: Could not find or load main class Projects\Android
    Caused by: java.lang.ClassNotFoundException: Projects\Android</p>
  </blockquote></li>
  <li><p>From Android Studio went to configuration, downloaded sdk platforms 16-29, all of sdk tools.</p></li>
  </ol>
  
  <p>Still I cannot solve the problem. Am I missing something? Or did I do something wrong here?</p>
  
  <p>I am using Windows 10.</p>
  
  <p><a href="https://i.stack.imgur.com/99mfU.jpg" rel="nofollow noreferrer">Unity error when trying to build</a></p>
  
  <p><a href="https://i.stack.imgur.com/YFjGp.jpg" rel="nofollow noreferrer">Trying to open sdkmanager.bat</a></p>
  
  <p><a href="https://i.stack.imgur.com/dZ7EB.jpg" rel="nofollow noreferrer">Path Setting</a></p>
  
  <p><a href="https://i.stack.imgur.com/6SKAj.jpg" rel="nofollow noreferrer">Android Studio configuration - SDK Platforms</a></p>
  
  <p><a href="https://i.stack.imgur.com/ZL89b.jpg" rel="nofollow noreferrer">Android Studio configuration - SDK Tools</a></p>