title: ionic build android FAILURE: Build failed with an exception. Could not create an instance of type org.gradle.invocation.DefaultGradle_Decorated
body: <p>I created an Android platform with success, but when I run 
  ionic build android 
  I get the following error: </p>
  
  <pre><code>FAILURE: Build failed with an exception.
  
  * What went wrong:
  Could not create an instance of type org.gradle.invocation.DefaultGradle_Decorated.
  
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  ERROR building one of the platforms: Error code 1 for command: /home/skylek/Ionic/conFusion/platforms/android/gradlew with args: cdvBuildDebug,-b,/home/skylek/Ionic/conFusion/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
  You may not have the required environment or OS to build this project
  Error: Error code 1 for command: /home/skylek/Ionic/conFusion/platforms/android/gradlew with args: cdvBuildDebug,-b,/home/skylek/Ionic/conFusion/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
  </code></pre>
  
  <p>Can anyone help me out.</p>