Visual Studio 2015 install failures (Android SDK Setup) behind a Proxy

This post has been moved to a new site. Please update your links to this location instead:

Comments (26)

  1. Vikas says:

    Thank you, worked perfectly for me.

    1. Great, thanks for the feedback!

  2. Graham Auty says:

    I’m getting this same problem, but I’m not sure how to proceed with your solution. My Internet Options / LAN Settings are set to “Automatically detect settings”, i.e., I’m not behind a firewall in the way you suggest (although I do have Norton Internet Security). How do I find what values to put in the file for the Port and Host? I have a couple of other machines with the same setup and they were okay. Any help would be appreciated.

    1. Hi Graham – it sounds like you’re hitting another issue if you are not behind a firewall or proxy. Could you send me email directly and we can see if I can help? My email is p h a u g e @ m i c r o s o f t dot c o m . Otherwise the Visual Studio setup forum is typically the best place for Visual Studio setup help: Thanks!

  3. Zehan misgar says:

    How to update http proxy port
    I am finding solution for same problem from two days.
    And thak GOD i got answer but how to update proxy pleeees send answer to my mail also

    1. Hi Zehan – thanks for getting in touch! You can update the proxy port in the androidtool.cfg file as specified above. Just change the line: “http.proxyPort=8888” and update the port number from 8888 to the correct port.

      1. Leon says:

        but what is the correct port, how can i find out? and the host?

        1. Hi Leon – are you installing Visual Studio in a network with a proxy server (like an enterprise corporate environment for example)? If so you should contact whoever is responsible for the network for this information. The Proxy host + port are details specific to your network configuration and not standard, so it’s not something I can provide. Let me know how it goes!

  4. Chris says:

    What if the proxy server requires credentials. I’m assuming I need some additional parameters to specify a user ID and password?

    1. Hi Chris – I found an answer here: . You can add this line to the file for an authenticated proxy:


      Let us know if it works!

      1. Sebastian says:

        Hi Chris and Peter,
        I ran into the same issues as Chris, but for me the solution of Peter did not help.
        Chris, did it work for you? Are there any other suggestions for this issue?
        Thanks in advance!

        1. Is the computer attached to a domain? If so, did you try the domain syntax, “\@”? Not sure if that will work…

          There is another way you can figure this out… After you see the install failure, you’ll still find “SDK Manager” installed on the machine in the start menu. You can open up the UI and set the proxy configuration directly in the UI.

          A 3rd way that might work is here: . If your proxy server happens to not require authentication for http:// addresses, you can set the SDK manager to install this way. (to figure out the settings to type in the file, just need to check the box in the UI and then check what was written to the file… )

          Let us know if any of these work!

          1. Sebastian says:

            Yes, my machine is within a domain.
            I tried all your suggestions but still no success.
            I’m now checking with our IT if our proxy is the issue.
            If anybody has any further ideas, I would be happy.

          2. I can think of one other option, which is handle the authenticated part of the proxy connection separately. IE: use and connect to your corporate proxy server (supports NTLM auth) and then point the android SDK config file above to the local proxy. I also looked at fiddler but it doesn’t natively support an authenticated proxy…

            Feel free to reach out to me directly to discuss more! My email is p e t e r (dot) h a u g e (at) m i c r o s o f t (dot) c o m

  5. Maria says:

    I’m facing the same issue in Visual Studio. Could you give me a workaround if Visual Studio is already installed in my PC or Do i need to uninstall Visual Studio and redo the installations again?
    Thanks in Advance

    1. Hi Maria – no worries, Visual Studio has a good ‘repair’ mechanism. You should implement the steps above to setup the proxy, then go to Add/Remove Programs, find “Microsoft Visual Studio Enterprise 2015 With Updates”, right click and choose “Change”. When the dialog comes up, you can click “Repair” at the bottom to start the process. This will reapply the packages to the machine using the settings you picked when you first installed the product… Thanks!

      1. Alex says:

        Peter, when I install vs2015 first time my vs2013 and all extensions of it was removed. If I start of repairing vs2015 now, it will remove older versions of Studio?

        1. Hi Alex – the design of the Visual Studio 2015 installer is that it installs completely standalone compared to prior versions. I have VS2013, VS2015, and VS2017 all running on my laptop side by side. If you changed the install directory during install to go to the same directory as VS2013 that may cause a conflict, but otherwise it should be standalone.

          1. Alex says:

            Yes I tried to repair vs2015 today and this didn’t affect on vs2013, but my problem with Android SDK doesn’t solved. After all my tries to install SDK on vs2015 I decided install this manually from SDK manager. I installed 19-21 levels and extra levels 22-27. Despite on it I can’t install level 19-21 from Control pannel still and it doesn’t appear as installed in install menu (Levels 22-23 marked blue dits, but 19-21 doesn’t). After repairing I try to build “Native-Activity Application” but I get error which described here

            stack overflow dot com/questions/38170501/error-creating-a-new-native-application-android-in-visual-studio

            I could solve that but I don’t have “Tools->Android->Android SDK Manager” menu. My Android menu is a simple “Logcat”. Path to SDK and JDK I set in “Cross Pltform->C++->Android”.

          2. I see – sorry to hear of the difficulty! If you installed the Android SDK manager outside of Visual Studio, please make sure that you configure Visual Studio to point to the right paths. There’s more information here: . Also – when you search on the start menu, it should be called “SDK Manager” where you can add new API versions. Hope that helps!

  6. Randi says:

    Hi! I’m having the same issue. I’m using a dongle to connect to internet.How can I change Port and host ?Thank you very much

    1. Hi Randi – I didn’t see a response from the other folks so not sure if updating the proxy file is working for an authenticated proxy… An alternative is to create a mini-proxy on your machine that handles the authentication on your behalf and then point the SDK Manager to that mini-proxy. There’s more info here: , it looks like Squid Proxy is the way to go. Please let us know if it works for you!

  7. Ralph says:

    Hi Peter!

    Thank you for sharing this information!

    Best regards,


  8. Eiasir Arafat says:

    There is no folder like %MyName%\.android. Where i have to create androidtool.cfg. Please Help me.
    Eiasir Arafat.

    1. If the folder doesn’t already exist, please create it and add the .android.cfg file in. The Android SDK install will find it as long as it’s in the right place, %USERPROFILE%\.android\androidtool.cfg . Thanks!

  9. Adisone says:

    ### Settings for Android Tool
    #Fri Jan 08 02:53:27 UTC 2016

    do like this when you create the file %USERPROFILE%\.android\androidtool.cfg
    and go to C:\Program Files (x86)\Android\android-sdk , run administrator and then successful

    note : if not found %USERPROFILE%\.android\ , please install the software “android-studio-bundle-162.4069837-windows” before and then you will see the folder “.android” !!

    best regard,


Skip to main content