An error occurred building visual studio cordova app using multi-device-hybrid-apps

I was getting the same errors. There are three environment variables that must be defined:

1) %JAVA_HOME% — C:\Program Files (x86)\Java\jdk1.7.0_55

2) %ADT_HOME% — C:\Users\YOUR_NAME_GOES_HERE\AppData\Local\Android\android-sdk

3) %ANT_HOME% — C:\apache-ant-1.9.3

NOTE — The paths for these programs may be totally different on your PC – You have to figure out the install paths for each.

Once you have defined these variables then copy the entry below into the Path variable for your user account (I have read elsewhere that it is best to add these to the beginning of the entry and not the end – thats what I did and it worked for me). Reboot PC after making all changes.

%JAVA_HOME%\bin;%ADT_HOME%\tools;%ADT_HOME%\platform-tools;%ANT_HOME%\bin;

*Taken from the “Installing 3rd party software manually” section in the official documentation.

Leave a Comment