Sunday, August 21, 2016

Android SDK Manager not opening (Solution)

Well, been a crazy week! 5 whole week days, trying to fix the SDK manager bug. Being spatted with the error, "Failed to execute android.bat" and "Cannot find file android.bat". and finally, possibilities come to my rescue.

Here is the solution:

1. Locate "android.bat" in your "..............\Android\sdk\tools" folder
2. Right-click and edit on text editor
3. Change set java_exe=   to set java_exe=%JAVA_HOME%\bin\java.exe
4. Delete for /f "delims=" %%a in ('"%java_exe%" -jar lib\archquery.jar') do set swt_path=lib\%%a. Replace it with set swt_path=lib\x86_64. 86_64, for a 64-bit os.
5. Open terminal cmd and type android. Should open up the SDK manager tool window.

Good luck