用于Cordova插件的Visual Studio 2015 ADAL导致错误:命令“platforms \ android \ cordova \ clean.bat”退出,代码为1

时间:2016-02-11 16:23:13

标签: cordova azure visual-studio-2015 cordova-plugins visual-studio-cordova

我使用VS2015和VS Tools for Apache Cordova版本14.0.60202.6,并且在为Cordova插件添加ADAL时出现以下错误。 我是否定位设备或Ripple仿真器似乎无关紧要。

enter image description here

重新创建问题的步骤:

  1. 文件>新>项目(Ctrl + Shift + N)
  2. 选择"空白应用程序(Apache Cordova)"默认名称为" BlankCordovaApp1"
  3. 的模板
  4. 加载后,双击config.xml并选择“插件”选项卡
  5. 在Core菜单中,选择插件 ADAL for Cordova ,然后点击添加
  6. 打开插件文件夹以确认添加了 cordova-plugin-ms-adal 文件夹。 ** note * Cordova插件的ADAL插件还添加 cordova-plugin-whitelist
  7. Ctrl + Shift + B构建应用,您会收到以下错误:
  8. Stackoverflow文章建议更新环境变量但这些设置正确: enter image description here

    这是我的VS 2015版本和设置: enter image description here

    裤子中最大的问题是VS2013中的这个插件没有任何问题。

    请帮忙!如果我能提供有关我的环境的任何其他信息,请告诉我。

    已解决:@ SergeiGrebnov的评论

1 个答案:

答案 0 :(得分:4)

这很可能是Android dev环境配置问题,请尝试从Android Support Repository经理安装Android SDK