0

whenever i am trying to build my program in Apache Cordova in Visual studio 2015, i have been given the following errors -

1.Failed to find 'ANDROID_HOME' environment variable. Try setting it manually.

2.Failed to find 'android' command in your 'PATH'. Try update your 'PATH' to include path to valid SDK directory.

how can i fix this problem ? anyone have any suggestion for me.

Jordan Matthiesen
  • 1,480
  • 7
  • 17
Asif Al Noman
  • 47
  • 1
  • 11
  • You can try setting ANDROID_HOME via the command prompt [link](https://stackoverflow.com/questions/26356359/error-android-home-is-not-set-and-android-command-not-in-your-path-you-must-ful) – Plac3Hold3r May 04 '16 at 15:01
  • Try setting ANDROID_HOME in system environment variables and add the path of android sdk folder in Path system environment variable – Gandhi May 04 '16 at 15:13
  • is there any way to set path location in cordova project ? – Asif Al Noman May 04 '16 at 15:16

1 Answers1

0

In Visual Studio, open the Tools | Options... | Tools for 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.

Jordan Matthiesen
  • 1,480
  • 7
  • 17
  • I am getting the same. I did not install any sdk outside of VS 2015. How can I check where it was installed to? Thanks – Mark Oct 09 '16 at 21:06
  • 1
    First, let's make sure that you have an Android SDK installed. In the "Programs and Features" control panel, please find Microsoft Visual Studio 2015 and choose the "Change" button. Then, in the list of installed components do you have the Android SDK checked as an option and showing as installed? – Jordan Matthiesen Oct 12 '16 at 16:18