Visual Studio无法安装Android SDK(API级别19和21)(缺少额外的android-support) [英] Visual Studio can't install Android SDK (API level 19 and 21) (missing extra-android-support)
问题描述
尝试通过更新程序为Visual Studio安装Android SDK(API级别19和21)后,我总是看到错误:未下载以下软件包:extra-android-support.
After trying to install Android SDK (API level 19 and 21) for Visual Studio via it's updater, I always see the error: "the following package(s) were not downloaded: extra-android-support.
我重新安装了Visual Studio,JDK甚至Windows,但是没有任何改变.比起我,我是否检查过这个额外的android-support"软件包存在,我发现Android存储库中没有该软件包了.
I reinstalled Visual Studio, JDK and even Windows, but nothing changed. Than I checked if this "extra-android-support" package exist, and I found that there'are no more that package in Android repository.
如果您转到Android SDK文件夹\ tools
You can check it by yourself, if you go to Android SDK folder\tools
C:\Program Files (x86)\Android\android-sdk\tools
然后在cmd中运行下一个命令
And then run next command in cmd
android.bat update sdk -u -a –-filter extra-android-support
看来该名称的软件包已不再存在.
Looks like there's no package with this name anymore.
但是Visual Studio仍在尝试安装它.无论如何,我如何才能将Android SDK用于Visual Studio?
But Visual Studio is still trying to install it. Is there anyways how can I use Android SDK for Visual Studio?
推荐答案
Dmitry Strokov
Hi Dmitry Strokov,
感谢您在MSDN论坛中发帖.
Thank you for posting in MSDN forum.
对于此问题,请尝试以下步骤:
For this issue, please try the steps as below:
1.在此位置创建文件: %USERPROFILE%\.android \ androidtool.cfg
1.Create a file at this location: %USERPROFILE%\.android\androidtool.cfg
2.在您刚创建的androidtool.cfg文件中,放置以下内容.确保更新文件中的" http.proxyPort "和" http.proxyHost "!
2. 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
  ;
3.在 控制面板 ,位于
3. In Control Panel, on thePrograms and Features page, select VS to modify and repair, including the Android SDK setup ( API level 19 and 21)
参考博客:
这篇关于Visual Studio无法安装Android SDK(API级别19和21)(缺少额外的android-support)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!