title: ionic 3 - [ERROR] An error occurred while running cordova build android (exit code 1)
body: <p>In ionic 3 project I am getting following error when running => ionic cordova build --release android </p>
  
  <pre><code>[ERROR] An error occurred while running cordova build android (exit code 1).
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/hNfgu.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>My Project configuration is as below..</p>
  
  <pre><code>cli packages: (C:\Users\APPLE\AppData\Roaming\npm\node_modules)
  
  @ionic/cli-utils  : 1.18.0
  ionic (Ionic CLI) : 3.18.0
  </code></pre>
  
  <p>global packages:</p>
  
  <pre><code>cordova (Cordova CLI) : 6.2.0
  </code></pre>
  
  <p>local packages:</p>
  
  <pre><code>@ionic/app-scripts : 3.1.2
  Cordova Platforms  : android 5.1.1
  Ionic Framework    : ionic-angular 3.9.2
  </code></pre>
  
  <p>System:</p>
  
  <pre><code>Android SDK Tools : 25.2.5
  Node              : v6.11.0
  npm               : 3.10.10
  OS                : Windows 10
  </code></pre>
  
  <p>Environment Variables:</p>
  
  <pre><code>ANDROID_HOME : D:\AppData\Android\sdk
  </code></pre>
  
  <p>Misc:</p>
  
  <pre><code>backend : pro
  </code></pre>
  
  <p>I don't know whats going wrong...</p>