Category Archives: Hybrid Apps

Visual Studio 2015 + Cordova + Android Device deployment for Debugging

Purpose of this blog in to provide additional steps that needs to be done post installation of Cordova  tools for Visual Studio 2015.

  • Follow steps to install Visual Studio 2015 and Cordova tools as per MSDN documentation. You can follow the steps as mentioned in the MSDN documentation  https://msdn.microsoft.com/en-us/library/dn879821(v=vs.140).aspx
  • Had followed steps of not installing manually, followed default installation steps of installing cordova tools which gets installed post visual studio installation.
  • Post this for my Application was getting errors of
    • Exit Code 2
    • Exist Code 8.
  • To resolve these steps did following steps
    • Add Environment Variable JAVA_HOME and set the value to “C:\Program Files (x86)\Java\jdk1.7.0_55” which is default installation location by Visual Studio Installation
    • Added ADT_HOME environment variable with value “C:\Program Files (x86)\Android\android-sdk” which is default installation location by Visual Studio Installation
    • Added ANT_HOME environment variable with value “C:\Program Files (x86)\Microsoft Visual Studio 14.0\Apps\apache-ant-1.9.3” which is default installation location by Visual Studio Installation
    • Configure path variable to append following “%JAVA_HOME%\bin;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools;%ANT_HOME%\bin;”