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 ..!

78 Responses to “How to Fix : Android SDK Manager failing to open in Android Development Tools Bundle”
  1. 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.

  2. 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.

      • harvendra

        Thanks,this solves my problem too..running SDK manager as administrator

        • Vega

          it persists for me… so sad

    • panneer

      Thanks dear friend… Its working good

  3. Wellington Villegas M.

    Thanks for the solution

  4. shyam93

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

  5. 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! 🙂

  6. m. norman williams

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

  7. 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

      • Ganapathi nl

        It’s Working for me. It save my goodwill to my TL. Thanx a lot.

      • Arul Venkateshan

        Thanks… :):)

        I take up ur answer and got a solution..

        First i faced that SDK manager is not worked even i set the java path. After that i removed that quote, its working properly.

  8. 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…

    • Dee

      For me it turns out that was the best idea…. my access was denied and I had to run it as administrator, so now I just run eclipse as Administrator, I am running windows 8.

      • Shams

        Thank you sooo much ! 😀
        Finally !
        It worked with me now <3

    • Carlos Ospina

      Thank’s man, it works for me

  9. 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.

    • Desh

      thanks. i had been getting frustrated with all the failed solutions; this was what finally worked for me.

    • Yosi Neeman


      finally… Deleted that damn line and it works fine !

      “call libjava_find.bat”

      THX ALOT !

    • NiftyT

      Nice one. Worked like a charm, thank you so much

    • Virendra

      great bro thanks now finally my code is workings after changing this line
      “call libjava_find.bat”

    • abhijeet

      Thanks Man!!!
      Was frustrated for hours……

    • Saud Khan

      thank you soo much.
      after deleting the line “call lib\find_java.bat”

      my android sdk start working again…………

      Thanks again..

  10. Milo

    Thx, it works. You saved me 🙂

  11. F Soleymani


  12. Martin Ambre

    thanks 😀

  13. Shree

    thanks dude!!.. it works perfectly .. 🙂

  14. MrRugina

    First. Try instal JAVA.

  15. Tilman

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

  16. 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.

  17. Venkatesh

    Thanks man ! It works (Y)

  18. ArKhan

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

  19. Guest


  20. Kino Lockhart

    Run the application as Administrator and it should work.

  21. neel shah

    not working

  22. DeltaForce

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

  23. [email protected]

    Worked perfectly – thanks a lot!!!!

  24. singh9526

    Thank you so much! It works!

  25. Javad

    Thanks Thanks Thanks

  26. Diego Fortes

    THANK YOU SO MUCH! I removed the quotes tho, it made it work!

    set java_exe=C:Program FilesJavajre7binjava.exe

  27. Saad

    When i hit the enter key to save the android.bat file is says Access denied , kindly help me what to do with it?

    • Ritu Sharma

      I’m not sure but I think restart the system and try again. May be it works 🙂

  28. Mohamed Samir

    Aha It Have Worked Well 😉 Thank You Very Much (y)

  29. chiranjeevi

    You can just set the JAVA_HOME environment variable in system. Then add %JAVA_HOME%bin; in PATH in the beginning.

    This will enable any java application to pick the java..

  30. abe

    Thanks man for the solution it helped me a lot

  31. lalah

    thanks, thanks a lot

  32. Pat

    Thank you!!! FINALLY got it working.. thank you to everyone! 😉

  33. narsimha

    set java_exe=C:\Program Files\Java\jre7\bin\java.exe
    delete “call libjava_find.bat” line
    in android.bat file

  34. narsimha

    set java_exe=C:\Program Files\Java\jre7\bin\java.exe
    delete “call libjava_find.bat” line
    in android.bat file

    It will work properly ..
    good luck for android app development..

  35. Danny

    Worked perfectly, thanks a lot for this solution it was driving me insane.

    • Akshaya

      Don’t it display the warning message “Access is denied” while saving the android.bat file .

  36. Jigar_ShunTz

    1. without quotes -> set java_exe=C:\Program Files\Java\jre7\bin\java.exe
    2. deleting line -> call libjava_find.bat
    3. Run as Administrator
    worked for me !! Cheers!! 😀
    (64 bit win 8.1)

  37. Amit Rajpoot

    after setting java_exe path you have to do the following things:
    1)Run android studio as administrator
    2)Run Eclipse as administrator

    This has resolved my problem

  38. Amgad


  39. karcs

    hey,am trying to set up my android development env`t using android studio bt hw can i install the sdk by adding to the android studio.i have already downloaded it.thx

  40. swati

    i have one error tht sdk manager failed to installed

  41. swati

    jdk manager failed to install.move to another folder..error cuming..

  42. Pedro

    After hours of installing, reinstalling Java and the SDK manager, hacking the bat file, etc. I’ve discovered that this crash can also be caused by having an active VPN. So if it could help anyone, try turning off all proxy or VPNs that you might have running…

  43. Akshaya

    If have the problem in opening SDK manager…when i try to set the path in android.bat file ,it display the warning msg “Access is denied”
    Please help me to fix this problem…

  44. Akshaya

    Finally the SDK manager opened…thank u or your help..
    The steps I followed is

    set java_exe=C:\Program Files\Java\jre7\bin\java.exe
    delete “call libjava_find.bat” line
    in android.bat file

    [Note: Sometime the modified android.bat file could not able to save and show the warning message “Access is denied”. For that just copy that android.bat file anywhere else in the computer, i copied Desktop, then open that file and do the above 2 steps and save it. Afterwards delete the original android.bat file in tools folder. And copy the edited android.bat file which is in the Desktop.]

    Though the problem was not fixed..
    And I also tried the Step 3 also..

    step 3: Set the Environmental variable as below

    Variable name : ANDROID_SDK_HOME
    Variable value : C:\Users\akshaya.u\.android\avd

    And now open the SDK manager…it will open..
    I hope it will be useful..Thank you 🙂

  45. sumeet

    thanks bro really it works thanks a lot

  46. Kathir

    I have done all the above but is showing a pop up “cannot find tool\android.bat” but the file is inside tools. pls help

  47. DKKong

    I just reinstalled java 8).. and now works fine.

  48. gurpreet

    im not able to save .bat file after editing it says access is denied……
    please help

  49. George

    Thank you very much for your help.

  50. Scott Reid

    After days of being frustrated by Android SDK manager, I finally found a simpler and altogether cleaner solution.

    There is no need to edit the android.bat file or run it as an admin.

    After installing Java it is often necessary to add Java to the Path variable. Most people add the location of Java to the END of the path. DON’T

    Make sure that Java is the FIRST location in your system path.

  51. Gorgio

    Thank you very f*****g much, was bout to throw my laptop away!
    Keep it up!!

  52. Android

    Finally after trying your solution and solutions given in the comment, it worked perfectly. However I also changed sdk.exe from other sdk.

  53. Shiva

    Thanks a lot bro.

    It works

  54. chandu

    its not working i’ve done the process explained by you

    set java_exe=C:\Program Files\Java\jre7\bin\java.exe.
    unable to open SDK file.
    Please Assist with more ideas

  55. Habib

    Hei, Thank you for the information. . You save my time. .
    i just follow this step :

    1. without quotes -> set java_exe=C:\Program Files\Java\jre7\bin\java.exe
    2. deleting line -> call libjava_find.bat
    3. If not working you can ,Run as Administrator


  56. javad


  57. android

    really nice

Leave a Reply