title: Ionic Cordova Build Android Error With Gradle And Build Failed
body: <p>Please help me to solve this problem. I don't know how to solve this problem because I've already tried all methods that I know of, but I'm still getting a Gradle error.</p>
  
  <p><a href="https://i.stack.imgur.com/VfxcB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VfxcB.png" alt="Please Look At This Screenshot"></a></p>
  
  <p>I've already added the new system variable name : _JAVA_OPTIONS and the value : -Xmx512M. The error is still same. Please help me if you can.</p>
  
  <pre><code>$ ionic cordova platform list
  
  cordova platform ls
  
  You have been opted out of telemetry. To change this, run: cordova telemetry on.
  
  Installed platforms: android 6.4.0
  Available platforms: browser ~5.0.1
  ios ~4.5.4
  osx ~4.0.1
  windows ~5.0.0
  www ^3.12.0
  </code></pre>