How to Fix : Android SDK Manager failing to open in Android Development Tools Bundle

Some times you might encounter an issue with the Android Development Tools bundle where the Android SDK  manager fails to open or closes immediately after showing a command prompt like window. Fortunately it is really easy to solve.

Step 1 :

Go to [sdk-folder]/tools folder (For me it was C:\adt-bundle-windows-x86_64-20130522\sdk\tools).

Step 2 : 

Open the file android.bat in notepad by right clicking on it and selecting Edit from the context menu.

Step 3 :

Find the line in the file that says java_exe.

Notepad android.bat

Step 4:

Now edit the “set java_exe=” line to

set java_exe="C:\Program Files\Java\jre7\bin\java.exe"

Here “C:\Program Files\Java\jre7\bin\java.exe” is the path where the java.exe file for the JRE is installed. You should check your Java executable location and change the line accordingly.

Now save the file and close it.  To test it out, in Eclipse go to Window > Android SDK Manager.
Android SDK Manager

Ta daa ..!

  • Hamish

    Thanks that method just worked,
    but now i cant get eclipse to work
    any help?

    • ajaybc

      Must be the problem with JDK or JRE. Not sure as you havent provided any details.

  • Jonathan

    Thank you! Spent almost an hour looking for a solution.

    • Guest

      If the problem persists, after adding the path in “android.bat”, you should run the “SDK Manager.exe” as Administrator. This fixed my problem.

    • panneer

      Thanks dear friend… Its working good

  • Wellington Villegas M.

    Thanks for the solution

  • shyam93

    Hello I followed the above instructions but still can’t open my SDK….its closing after popup display

  • http://www.mywebsitedesignersblog.com Andy Newby

    Thank you thank you thank you! I spent a good 4 hours yesterday trying to get the damn thing working – but this did the trick! :)

  • m. norman williams

    how do I check Java executable and change? Followed all the steps without any change.

  • Kimmi Dhingra

    i have change android.bat file with both C:Program FilesJavajdk1.7.0_15binjava.exe and C:Program FilesJavajre7binjava.exe,…but still my sdk is not opening…i also restrat the eclipse..Kindly Plz help me

    • DeltaForce

      Set path without double quotes.
      set java_exe=C:Program FilesJavajdk1.8.0_05binjava.exe

  • Xancett

    If this isn’t working for you try running the android.bat file and see if that starts it. I don’t use Eclipse, but this did manage to help. Thank you!

    • eee

      thanks man good idea

    • Thales

      Thanks! Works for me…

  • Catalin

    If this doesn’t work delete the line:
    call libjava_find.bat
    and manually set the java_exe to point to the jre6 location not jdk

    This should work with no problems.

  • Milo

    Thx, it works. You saved me :-)

  • F Soleymani

    WELL DONE BOYS!!!

  • Martin Ambre

    thanks :D

  • Shree

    thanks dude!!.. it works perfectly .. :)

  • MrRugina

    First. Try instal JAVA.

  • Tilman

    I changed the environment variable JAVA_HOME instead, which also did it. But your post did help.

  • Hrvoje

    If the problem persists after adding the path in “android.bat”, you should run the “SDK Manager.exe” as Administrator. That fixed my problem.

  • Venkatesh

    Thanks man ! It works (Y)

  • ArKhan

    Shit its not working for me :( stil the same any other ideas please??? waiting…

  • Guest

    thanks

  • Kino Lockhart

    Run the application as Administrator and it should work.

  • neel shah

    not working

  • DeltaForce

    Thanks alot.. i was working on it since 4 5 hours since morning… U saved my time.. Keep sharing good things :)

  • AA@12

    Worked perfectly – thanks a lot!!!!

  • singh9526

    Thank you so much! It works!