title: Visual Studio Cordova Build Error - JDK 1.8 or Greater
body: <p>When building an ionic app in Visual Studio 2015 Professional, targeting an Android emulator, I get the following error:</p>
  
  <pre><code>------ Build configuration options: --debug
  Executing "before_compile"  hook for all plugins.
  ANDROID_HOME=C:\Users\XXXXXXX\AppData\Local\Android\android-sdk
  JAVA_HOME=C:\Program Files\Java\jdk1.8.0_112
  MSBUILD : cordova-build error : Requirements check failed for JDK 1.8 or greater
  </code></pre>
  
  <p>Notice JAVA_HOME is pointing to a 1.8 JDK.  I <strong>AM</strong> able to:</p>
  
  <ul>
  <li>Compile/Run with Ripple</li>
  <li>Compile/Run on an iOS simulator</li>
  <li>Compile/Run on an ANDROID emulator via the Ionic command line via: <code>ionic emulate android</code></li>
  </ul>
  
  <p>I battled this same problem with the command line for ionic, but solved by updating my PATH environment variables to point to a 1.8 JDK in addition to the JAVA_HOME.  Is it possible that Visual Studio/MSBuild are picking up a different PATH environment variable?</p>