title: How to fix "Error - Failed to execute tools\android.bat, error 2 " in Android?
body: <p>When i click on AVD Manager, i am getting an error as in the screenshot below.</p>
  
  <p>Referred to the following links. But none of the solution works for me.</p>
  
  <p><a href="https://stackoverflow.com/questions/19015587/failed-to-execute-tools-android-bat-solution">Failed to execute tools\android.bat: solution</a></p>
  
  <p><a href="https://stackoverflow.com/questions/9513023/android-sdk-windows-failed-to-execute-android-bat">Android SDK Windows Failed to execute Android.bat</a></p>
  
  <p><a href="https://android.stackexchange.com/questions/33538/android-sdk-cant-find-android-bat">https://android.stackexchange.com/questions/33538/android-sdk-cant-find-android-bat</a></p>
  
  <p>In Tools -> Lib Folder i have my AVD Manager.</p>
  
  <p>In Tools -> i have android.bat</p>
  
  <p>I tried the following options and it did not work.</p>
  
  <ol>
  <li>Copied Android SDK Manager in Lib folder and clicked on AVD Manager. Got the same error.</li>
  <li>Copied AVD Manager to Tools folder and clicked AVD Manager. Got the same error.</li>
  </ol>
  
  <p>Please find below the error screenshot.</p>
  
  <p><img src="https://i.stack.imgur.com/UyO9Q.png" alt="enter image description here"></p>
  
  <p>Kindly let me know if any thoughts.</p>