title: How to fix build failed issue in Ionic 3 for android?
body: <p>When I try <code>ionic cordova build android --prod --release</code> command in Ionic 3, it shows an error</p>
  
  <blockquote>
    <p>[12:24:50] ionic-app-script task: “build”
    [12:24:50] Error: The Angular AoT build failed. See the issues above
    Error: The Angular AoT build failed. See the issues above
    at /Users/angelamal/Documents/osome/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:237:55
    at step (/Users/angelamal/Documents/osome/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:32:23)
    at Object.next (/Users/angelamal/Documents/osome/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:13:53)
    at fulfilled (/Users/angelamal/Documents/osome/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:4:58)
    [ERROR] An error occurred while running subprocess ionic-app-scripts.
    ionic-app-scripts build --prod --target cordova --platform android exited
    with exit code 1.</p>
  </blockquote>
  
  <p>While I try to build an android app in Ionic 3.</p>
  
  <p>I used this command <code>ionic cordova build android --prod --release</code></p>
  
  <p>But it is showing an error. How to solve this?</p>
  
  <p>Thanks in Advance</p>