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

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

Also Read: How to free GBs of space on an iPhone without deleting photos, apps, and files using the Cleopatra trick

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

      • 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

  • 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

  • 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

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

  • 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

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

  • Milo

    Thx, it works. You saved me 🙂

  • F Soleymani


  • Martin Ambre

    thanks 😀

  • 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


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

  • Javad

    Thanks Thanks Thanks

  • Diego Fortes

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

    set java_exe=C:Program FilesJavajre7binjava.exe

  • 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 🙂

  • Mohamed Samir

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

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

  • abe

    Thanks man for the solution it helped me a lot

  • Pingback: How to Fix " Android SDK Manager failing to open " While using in Android Development Tools Bundle | Techbeasts()

  • lalah

    thanks, thanks a lot

  • Pat

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

  • narsimha

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

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

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

  • 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)

  • 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

  • Amgad


  • 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

  • swati

    i have one error tht sdk manager failed to installed

  • swati

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

  • 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…

  • 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…

  • 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 🙂

  • sumeet

    thanks bro really it works thanks a lot

  • 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

  • DKKong

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

  • gurpreet

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

  • George

    Thank you very much for your help.

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

  • Gorgio

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

  • Android

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

  • Shiva

    Thanks a lot bro.

    It works

  • 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

  • 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


  • javad


  • really nice

  • Albert Trotter

    can any one tell me that how to install sdk manager in eclipse neon 3.0????

  • BG

    Thanks for the information.

  • sravya

    I have installed android studio.Started a new project and everything went on good.But when I close it and open it later , the android studio is reinstalling saying me to delete the older version and install a new one.Whenever I open it I have to run it again.This seems to be a big waste of time.Please hep me.How can I open my android studio without re installing it?