none
Android SDK APIs 19 and 21 won't download

    Question

  • I did clean install of Windows 10 from an ISO while keeping my personal files, and then reinstalled Visual Studio Community 2015.  Everything seems fine, except that the Android SDK APIs 19 and 21 won't download.  I've already tried it twice (first one with the installation of the software, and one other time when modifying the installation to include those APIs). 

    This was the exact message in the setup window: Android SDK Setup (API Level 19 and 21) : The following package(s) were not downloaded: extra-android-support . Please check your internet connection and try again.

    Edit: I just started the app and am now doing updates.  First is the Azure SDK for .NET, version 2.9.6.  I have three other updates after this and I think I'll be able to do something about those APIs after that.  Hopefully that's okay with you guys. 
    • Edited by DragonOsman2 Wednesday, December 14, 2016 2:38 PM
    Wednesday, December 14, 2016 2:29 PM

Answers

  • Hi haydnguy,

    Thank you for your update and sorry for this inconvenience.

    If you have any issue about VS 2017 RC IDE in the future, please feel free to let me know.

    Best regards,

    Sara


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Proposed as answer by haydnguy Tuesday, December 27, 2016 11:18 PM
    • Marked as answer by DragonOsman2 Wednesday, December 28, 2016 11:01 AM
    Tuesday, December 27, 2016 1:39 AM
    Moderator

All replies

  • Hi DragonOsman2,

    Welcome to the MSDN forum.

    I'm so glad to hear that your issue is solved and thank you very much for your sharing.

    Could you please make a reply with your solution and mark it as answer? It will help other community members who meet the same or similar issue to easier search this useful solution, thank you for your support.

    Best regards,

    Sara


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, December 15, 2016 3:03 AM
    Moderator
  • But I never said that the API problem was solved. I only said I'm doing other updates. I'll try downloading those APIs again.
    Thursday, December 15, 2016 1:45 PM
  • I'm having the exact same problem. I ran install again and chose Manage. When I looked at everything checked, API Level 19 and 20 were NOT checked. I checked them and I got the exact same message at the end of the installation as I did before. I don't know what else to try.
    Thursday, December 15, 2016 6:52 PM
  • Hi DragonOsman2,

    Thank you for your update and sorry for my misunderstanding. After installing those updates, did you still meet the same error message?

    Refer to the error message, it often relates to the internet connection, did you behind a proxy? Please have a try with the following to troubleshot this issue.

    1. Please have a look at this blog: Visual Studio 2015 install failures (Android SDK Setup) behind a Proxy and follow the steps as below to fix it:

    • BEFORE installing Visual Studio, create a file at this location:  %USERPROFILE%\.android\androidtool.cfg     
    • In the androidtool.cfg file that you just created, place the following contents.  Make sure to update “http.proxyPort” and “http.proxyHost” in the file!

    ### Settings for Android Tool

    #Fri Jan 08 02:53:27 UTC 2016

    http.proxyPort=8888

    sdkman.enable.previews=false

    http.proxyHost=127.0.0.1

    sdkman.ask.adb.restart=false

    sdkman.show.update.only=true

    sdkman.force.http=false

    sdkman.use.dl.cache=true

    • Install Visual Studio normally

    2. Open Android SDK Manager and click Tools-Options… and check the option “Force https://... Sources to be fetched using http://...” and try to download those android SDK packages again.

    If this issue persists, I need your help to collect the installation logs, you use http://aka.ms/vscollect to gather the installation logs. After using it, you will find vslogs.zip under %temp% folder then upload the file to https://onedrive.live.com/ and share the link here.

    Best regards,

    Sara


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, December 16, 2016 2:30 AM
    Moderator
  • I already have Visual Studio installed, so the "BEFORE installing Visual Studio" part is impossible now.   And I also don't want to uninstall and reinstall it.  Hopefully I can create that folder and then just modify the current installation of Visual Studio that I have to add those Android SDK APIs. 

    I'm not using a proxy, though.  Chrome has Browsec VPN installed, but that's an extension and Edge currently doesn't have that extension. 

    Friday, December 16, 2016 10:14 AM
  • Hi Sara,

    I am having the same problem with the Android SDK 19 and 21.

    I am attaching the link to the installation log. One thing I should tell you is that I tried to put

    Proxy Port = 8888

    proxy host = 127.0.0.1

    That is because in a previous posters entry they said to put a file called androidtool.cfg and make sure I changed these two proxy parameters. I didn't know what to put there so I used the numbers he gave. When I tried to determine what mine were on the command line it said that there was none and that mine was "Direct" so I didn't know what else to do. Anyway, here is the link to the file. Thanks!

    https://1drv.ms/f/s!Aq94WxaNdEa-9CQbV8V73uyXMY3t

    Saturday, December 17, 2016 3:06 AM
  • I tried the installation again, this time to (try to re) install Android SDK APIs 19 and 21 and to also install Python tools for VS2015.  The Python tools part didn't seem to give an error, but I got the same error message as before for the Android SDK APIs.  I have the logs this time, though.

    Edit: I know now why it doesn't work.  Basically, the Google repository doesn't have those APIs anymore.  They removed them.  So the Visual Studio will obviously fail to get - because they no longer exist where it's looking for them.  Here's the source of the info: https://askguanyu.wordpress.com/2016/05/26/visual-studio-2015-setup-issue-with-android-sdk-hack-it/

    I'm not sure if I should try the solution specified in the above link, though.  Any ideas?

    Saturday, December 17, 2016 8:33 PM
  • Nice find! I believe I will wait to see what Sara says before using those steps. It's a pretty involved set of instructions and so I don't want to go through all that without confirmation.

    Of course, to each his own. I am, however, anxious to get past these errors as they have been discussed for several days. Thank you, again, for your post

    Sunday, December 18, 2016 8:17 AM
  • Hi DragonOsman2,

    Thank you for your update.

    Have you tried to run the command: “C:\Program Files (x86)\Android\android-sdk\tools\android.bat update sdk -u -a –t addon-google_apis_x86-google-19” that mentioned in the link you shared? If you get the same error message about addon-google_apis_x86-google-19, you can have a try with that solution.

    Best regards,

    Sara


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, December 19, 2016 9:09 AM
    Moderator
  • Hi DragonOsman2,
    I am trying the link that you reference above.

    After the <SDK-addon> section that we are supposed to add, there is this quote.

    *****
    "Next, you need to download addon-google_apis_x86-google-19 package from internet, and create a zip package"

    ******

    Would you happen to know where we are to go to download this? I "googled" this and got all kinds of things returned that were difficult to make sense of. Thanks again.

    Wednesday, December 21, 2016 3:02 PM
  • Hi haydnguy,

    Thank you for your update.

    From the shared website, I found he shared the package file and addon.xml file from here https://github.com/nbxx/addon-google_apis_x86-google and you can have a try with it.

    Best regards,

    Sara


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


    Thursday, December 22, 2016 3:04 AM
    Moderator
  • Hello,
    I was having difficulties and already had wasted a lot of time trying to get it to work so I decided to download Visual Studio 2017 RC. It seems to have installed without a problem.

    Just wanted to touch base to say how I got my problem resolved. 
    Tuesday, December 27, 2016 12:43 AM
  • Hi haydnguy,

    Thank you for your update and sorry for this inconvenience.

    If you have any issue about VS 2017 RC IDE in the future, please feel free to let me know.

    Best regards,

    Sara


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Proposed as answer by haydnguy Tuesday, December 27, 2016 11:18 PM
    • Marked as answer by DragonOsman2 Wednesday, December 28, 2016 11:01 AM
    Tuesday, December 27, 2016 1:39 AM
    Moderator
  • I tried installing VS 2017 RC before, but I couldn't even get it to start once I'd installed it.  I want to avoid installing it again until the full release comes out.  Hopefully it'll help me with those Android APIs like it's helped you.
    Wednesday, December 28, 2016 11:00 AM