visual-studio - 如何让 Visual Studio 2015 安装程序知道我已经拥有 Android SDK?

标签 visual-studio android-ndk visual-studio-2015 visual-studio-cordova android-sdk-tools

当我安装 Visual Studio 2015 时,我意识到它说 Java SE Development Kit已经存在于计算机上。我认为安装人员知道它是因为 environment variables .这就是为什么我设置 ANDROID_SDK_HOMEANDROID_NDK环境变量。

但是当我再次启动安装程序时,它仍然只知道 Java Development Kit。

我是否设置了错误的环境名称?如何让安装程序知道我已经有了 SDK 和 NDK?

最佳答案

Visual Studio 2015 安装程序不使用 ANDROID_SDK_HOME用于检测 SDK 的环境变量。您必须创建以下注册表项。

enter image description here

  • 开通 REGEDIT并导航至 HKEY_LOCAL_MACHINE\SOFTWARE .您必须添加新 key Android SDK Tools (如果尚未存在)通过右键单击 SOFTWARE .
  • 现在添加一个新的字符串值 Path通过右键单击 Android SDK Tools并输入android sdk的路径作为其值

  • 我已经对其进行了测试,并且 Visual Studio 2015 安装程序成功检测到了我现有的 Android SDK

    引用:https://bugzilla.xamarin.com/show_bug.cgi?id=859#c18

    关于visual-studio - 如何让 Visual Studio 2015 安装程序知道我已经拥有 Android SDK?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31792693/

    相关文章:

    android - 安装 android Studio 时如何解决这个名称有空格的问题。?

    android - 不能在 Cygwin 上使用 ndk-build

    c# - VS2015监 window 口不接受空条件语法

    git - 工作项、 pull 请求菜单在 Visual Studio 中不可见

    visual-studio-2015 - Visual Studio 设计器中的 "This app does not support the contract specified or is not installed"错误

    visual-studio - Visual Studio : What happened to the "Break when an exception is unhandled" option?

    asp.net-mvc - 无法复制文件....因为找不到错误

    .net - 为什么我们需要整合不同版本的包?

    c# - 开发始终在桌面上的 Windows 10 小部件应用程序

    Android调用共享库中的函数