简体   繁体   English

Visual Studio 2015中Apache Cordova中的错误

[英]Error in Apache cordova in Visual Studio 2015

whenever i am trying to build my program in Apache Cordova in Visual studio 2015, i have been given the following errors - 每当我尝试在Visual Studio 2015的Apache Cordova中构建程序时,都会收到以下错误-

1.Failed to find 'ANDROID_HOME' environment variable. 1.找不到'ANDROID_HOME'环境变量。 Try setting it manually. 尝试手动设置。

2.Failed to find 'android' command in your 'PATH'. 2.无法在“ PATH”中找到“ android”命令。 Try update your 'PATH' to include path to valid SDK directory. 尝试更新您的“ PATH”以包含有效SDK目录的路径。

how can i fix this problem ? 我该如何解决这个问题? anyone have any suggestion for me. 有人对我有任何建议。

In Visual Studio, open the Tools | 在Visual Studio中,打开“ 工具” |工具”。 Options... | 选项... | Tools for Apache Cordova | Apache Cordova的工具| Environment Variable Options menu. 环境变量选项菜单。 Then, check the ADT_HOME box and make sure the file path there points at your local install of the Android SDK. 然后,选中ADT_HOME框并确保文件路径指向您在本地安装的Android SDK。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM