title: Ionic package build failed - ionic angular toolkit
body: <p>Build error even after several tries of cleaning the system up from scratch.</p>
  <p><strong>Question</strong>: What is the best procedure to detect the source problem and fix it.</p>
  <p><strong>Build Command</strong></p>
  <p><code>ionic cordova build android</code> <strong>ERROR</strong></p>
  <blockquote>
  <p>ng.cmd run app:ionic-cordova-build --platform=android
  An unhandled exception occurred: <strong>Could not find the implementation for
  builder @ionic/angular-toolkit:cordova-build</strong> See
  &quot;C:\Users\username\AppData\Local\Temp\ng-DhZAYC\angular-errors.log&quot; for
  further details. [ERROR] An error occurred while running subprocess
  ng.</p>
  <pre><code>    ng.cmd run app:ionic-cordova-build --platform=android exited with exit code 127.
  
      Re-running this command with the --verbose flag may provide more information.
  </code></pre>
  </blockquote>
  <p><strong>Verbose</strong>
  <a href="https://i.stack.imgur.com/4A8db.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4A8db.jpg" alt="ionic verbose info" /></a></p>
  <p><strong>System Info</strong></p>
  <blockquote>
  <p>Ionic:</p>
  <p>Ionic CLI                     : 6.11.10
  (C:\Users\username\AppData\Roaming\npm\node_modules@ionic\cli)    Ionic
  Framework               : @ionic/angular 4.11.13<br />
  @angular-devkit/build-angular : 0.1001.4    @angular-devkit/schematics
  : 10.1.4    @angular/cli                  : 11.0.0-next.4<br />
  @ionic/angular-toolkit        : 1.5.1</p>
  <p>Cordova:</p>
  <p>Cordova CLI       : 10.0.0    Cordova Platforms : 6.0.0, android
  9.0.0, browser, ios 5.1.1    Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview
  3.1.2, (and 22 other plugins)</p>
  <p>Utility:</p>
  <p>cordova-res                          : 0.15.1    native-run (update
  available: 1.2.1) : 0.2.9</p>
  <p>System:</p>
  <p>Android SDK Tools : 26.1.1
  (C:\Users\username\AppData\Local\Android\Sdk)    NodeJS            :
  v12.10.0 (C:\Program Files\nodejs\node.exe)    npm               :
  6.13.7    OS                : Windows 10</p>
  </blockquote>
  <p><strong>package.json</strong></p>
  <pre><code>{   &quot;name&quot;: &quot;myapp&quot;,   &quot;version&quot;: &quot;0.0.30&quot;,   &quot;author&quot;: &quot;&quot;,   &quot;homepage&quot;: &quot;&quot;,   &quot;scripts&quot;: {
      &quot;ng&quot;: &quot;ng&quot;,
      &quot;start&quot;: &quot;ng serve&quot;,
      &quot;build&quot;: &quot;ng build&quot;,
      &quot;test&quot;: &quot;ng test&quot;,
      &quot;lint&quot;: &quot;ng lint&quot;,
      &quot;e2e&quot;: &quot;ng e2e&quot;,
      &quot;ionic:build-obsolet&quot;: &quot;ionic-app-scripts build android --release --prod  --wwwDir www --buildDir build&quot;   },   &quot;private&quot;: true,   &quot;dependencies&quot;: {
      &quot;@angular-devkit/build-angular&quot;: &quot;^0.1001.4&quot;,
      &quot;@angular/common&quot;: &quot;^11.0.0-next.4&quot;,
      &quot;@angular/core&quot;: &quot;^11.0.0-next.4&quot;,
      &quot;@angular/fire&quot;: &quot;^5.1.3&quot;,
      &quot;@angular/forms&quot;: &quot;^11.0.0-next.4&quot;,
      &quot;@angular/http&quot;: &quot;^7.2.2&quot;,
      &quot;@angular/platform-browser&quot;: &quot;^11.0.0-next.4&quot;,
      &quot;@angular/platform-browser-dynamic&quot;: &quot;^11.0.0-next.4&quot;,
      &quot;@angular/router&quot;: &quot;^11.0.0-next.4&quot;,
      &quot;@ionic-native/android-permissions&quot;: &quot;^5.11.0&quot;,
      &quot;@ionic-native/app-version&quot;: &quot;^5.9.0&quot;,
      &quot;@ionic-native/calendar&quot;: &quot;^5.9.0&quot;,
      &quot;@ionic-native/camera&quot;: &quot;^5.23.0&quot;,
      &quot;@ionic-native/core&quot;: &quot;^5.21.0&quot;,
      &quot;@ionic-native/device&quot;: &quot;^5.11.0&quot;,
      &quot;@ionic-native/email-composer&quot;: &quot;^5.15.1&quot;,
      &quot;@ionic-native/fcm&quot;: &quot;^5.15.1&quot;,
      &quot;@ionic-native/firebase&quot;: &quot;^5.5.1&quot;,
      &quot;@ionic-native/firebase-x&quot;: &quot;^5.24.0&quot;,
      &quot;@ionic-native/http&quot;: &quot;^5.24.0&quot;,
      &quot;@ionic-native/image-picker&quot;: &quot;^5.9.0&quot;,
      &quot;@ionic-native/in-app-browser&quot;: &quot;^5.13.0&quot;,
      &quot;@ionic-native/is-debug&quot;: &quot;^5.23.0&quot;,
      &quot;@ionic-native/keyboard&quot;: &quot;^5.9.0&quot;,
      &quot;@ionic-native/native-storage&quot;: &quot;^5.10.0&quot;,
      &quot;@ionic-native/network&quot;: &quot;^5.11.0&quot;,
      &quot;@ionic-native/open-native-settings&quot;: &quot;^5.8.0&quot;,
      &quot;@ionic-native/qr-scanner&quot;: &quot;^5.6.1&quot;,
      &quot;@ionic-native/screenshot&quot;: &quot;^5.9.0&quot;,
      &quot;@ionic-native/social-sharing&quot;: &quot;^5.9.0&quot;,
      &quot;@ionic-native/splash-screen&quot;: &quot;^5.0.0&quot;,
      &quot;@ionic-native/status-bar&quot;: &quot;^5.0.0&quot;,
      &quot;@ionic/angular&quot;: &quot;^4.5.0&quot;,
      &quot;@ionic/storage&quot;: &quot;^2.2.0&quot;,
      &quot;@types/chart.js&quot;: &quot;^2.8.5&quot;,
      &quot;@types/cordova&quot;: &quot;0.0.34&quot;,
      &quot;ajv&quot;: &quot;^6.10.0&quot;,
      &quot;angularfire2&quot;: &quot;^5.1.3&quot;,
      &quot;animejs&quot;: &quot;^3.0.1&quot;,
      &quot;calendar-utils&quot;: &quot;^0.3.1&quot;,
      &quot;chart.js&quot;: &quot;^2.8.0&quot;,
      &quot;com.darktalker.cordova.screenshot&quot;: &quot;^0.1.6&quot;,
      &quot;cordova-android&quot;: &quot;^9.0.0&quot;,
      &quot;cordova-browser&quot;: &quot;^6.0.0&quot;,
      &quot;cordova-ios&quot;: &quot;^5.1.1&quot;,
      &quot;cordova-open-native-settings&quot;: &quot;^1.5.2&quot;,
      &quot;cordova-plugin-add-swift-support&quot;: &quot;^2.0.2&quot;,
      &quot;cordova-plugin-advanced-http&quot;: &quot;^2.2.0&quot;,
      &quot;cordova-plugin-android-permissions&quot;: &quot;^1.0.2&quot;,
      &quot;cordova-plugin-androidx&quot;: &quot;^1.0.2&quot;,
      &quot;cordova-plugin-androidx-adapter&quot;: &quot;^1.1.0&quot;,
      &quot;cordova-plugin-app-version&quot;: &quot;^0.1.9&quot;,
      &quot;cordova-plugin-calendar&quot;: &quot;^5.1.4&quot;,
      &quot;cordova-plugin-camera&quot;: &quot;^4.1.0&quot;,
      &quot;cordova-plugin-device&quot;: &quot;^2.0.2&quot;,
      &quot;cordova-plugin-email-composer&quot;: &quot;^0.9.2&quot;,
      &quot;cordova-plugin-file&quot;: &quot;^6.0.2&quot;,
      &quot;cordova-plugin-firebasex&quot;: &quot;^7.0.0&quot;,
      &quot;cordova-plugin-inappbrowser&quot;: &quot;^3.1.0&quot;,
      &quot;cordova-plugin-ionic-keyboard&quot;: &quot;^2.1.3&quot;,
      &quot;cordova-plugin-ionic-webview&quot;: &quot;^3.1.2&quot;,
      &quot;cordova-plugin-is-debug&quot;: &quot;^1.0.0&quot;,
      &quot;cordova-plugin-qrscanner&quot;: &quot;^3.0.1&quot;,
      &quot;cordova-plugin-safariviewcontroller&quot;: &quot;^1.6.0&quot;,
      &quot;cordova-plugin-splashscreen&quot;: &quot;^5.0.2&quot;,
      &quot;cordova-plugin-statusbar&quot;: &quot;^2.4.2&quot;,
      &quot;cordova-plugin-telerik-imagepicker&quot;: &quot;^2.3.2&quot;,
      &quot;cordova-plugin-whitelist&quot;: &quot;^1.3.3&quot;,
      &quot;cordova-plugin-x-socialsharing&quot;: &quot;^5.4.7&quot;,
      &quot;cordova-res&quot;: &quot;^0.15.1&quot;,
      &quot;cordova-sqlite-storage&quot;: &quot;^3.2.1&quot;,
      &quot;core-js&quot;: &quot;^2.5.4&quot;,
      &quot;errorhandler&quot;: &quot;^1.5.1&quot;,
      &quot;es6-promise-plugin&quot;: &quot;^4.2.2&quot;,
      &quot;firebase&quot;: &quot;^7.22.0&quot;,
      &quot;firebase-admin&quot;: &quot;^9.2.0&quot;,
      &quot;g&quot;: &quot;^2.0.1&quot;,
      &quot;guid-typescript&quot;: &quot;^1.0.9&quot;,
      &quot;ionic2-calendar&quot;: &quot;^0.5.7&quot;,
      &quot;lab&quot;: &quot;18.0.2&quot;,
      &quot;native-run&quot;: &quot;^0.2.7&quot;,
      &quot;rxjs&quot;: &quot;^6.5.3&quot;,
      &quot;signal-exit&quot;: &quot;^3.0.2&quot;,
      &quot;web&quot;: &quot;0.0.2&quot;,
      &quot;xcode&quot;: &quot;^2.0.0&quot;,
      &quot;zone.js&quot;: &quot;~0.10.3&quot;   },   &quot;devDependencies&quot;: {
      &quot;@angular-devkit/architect&quot;: &quot;^0.1001.4&quot;,
      &quot;@angular-devkit/core&quot;: &quot;^10.1.4&quot;,
      &quot;@angular-devkit/schematics&quot;: &quot;^10.1.4&quot;,
      &quot;@angular/cli&quot;: &quot;11.0.0-next.4&quot;,
      &quot;@angular/compiler&quot;: &quot;~11.0.0-next.4&quot;,
      &quot;@angular/compiler-cli&quot;: &quot;~11.0.0-next.4&quot;,
      &quot;@angular/language-service&quot;: &quot;~11.0.0-next.4&quot;,
      &quot;@ionic/angular-toolkit&quot;: &quot;^1.4.1&quot;,
      &quot;@ionic/lab&quot;: &quot;^3.2.9&quot;,
      &quot;@types/jasmine&quot;: &quot;~2.8.8&quot;,
      &quot;@types/jasminewd2&quot;: &quot;~2.0.3&quot;,
      &quot;@types/node&quot;: &quot;~10.12.0&quot;,
      &quot;codelyzer&quot;: &quot;~4.5.0&quot;,
      &quot;jasmine-core&quot;: &quot;~2.99.1&quot;,
      &quot;jasmine-spec-reporter&quot;: &quot;~4.2.1&quot;,
      &quot;karma&quot;: &quot;~5.2.3&quot;,
      &quot;karma-chrome-launcher&quot;: &quot;~2.2.0&quot;,
      &quot;karma-coverage-istanbul-reporter&quot;: &quot;~2.0.1&quot;,
      &quot;karma-jasmine&quot;: &quot;~1.1.2&quot;,
      &quot;karma-jasmine-html-reporter&quot;: &quot;^0.2.2&quot;,
      &quot;node-sass&quot;: &quot;^4.12.0&quot;,
      &quot;protractor&quot;: &quot;~7.0.0&quot;,
      &quot;ts-node&quot;: &quot;~8.0.0&quot;,
      &quot;tslint&quot;: &quot;~6.1.3&quot;,
      &quot;typescript&quot;: &quot;^4.0.3&quot;   },   &quot;description&quot;: &quot;An Ionic project&quot;,   &quot;cordova&quot;: {
      &quot;plugins&quot;: {
        &quot;cordova-plugin-whitelist&quot;: {},
        &quot;cordova-plugin-statusbar&quot;: {},
        &quot;cordova-plugin-device&quot;: {},
        &quot;cordova-plugin-splashscreen&quot;: {},
        &quot;cordova-plugin-ionic-webview&quot;: {
          &quot;ANDROID_SUPPORT_ANNOTATIONS_VERSION&quot;: &quot;27.+&quot;
        },
        &quot;cordova-plugin-ionic-keyboard&quot;: {},
        &quot;cordova-plugin-qrscanner&quot;: {},
        &quot;cordova-open-native-settings&quot;: {},
        &quot;cordova-sqlite-storage&quot;: {},
        &quot;cordova-plugin-telerik-imagepicker&quot;: {
          &quot;PHOTO_LIBRARY_USAGE_DESCRIPTION&quot;: &quot; edit user profile &quot;
        },
        &quot;cordova-plugin-calendar&quot;: {
          &quot;CALENDAR_USAGE_DESCRIPTION&quot;: &quot; add party event to calendar &quot;,
          &quot;CONTACTS_USAGE_DESCRIPTION&quot;: &quot; add contact to user &quot;
        },
        &quot;cordova-plugin-app-version&quot;: {},
        &quot;com.darktalker.cordova.screenshot&quot;: {},
        &quot;cordova-plugin-x-socialsharing&quot;: {
          &quot;ANDROID_SUPPORT_V4_VERSION&quot;: &quot;24.1.1+&quot;
        },
        &quot;cordova-plugin-safariviewcontroller&quot;: {},
        &quot;cordova-plugin-inappbrowser&quot;: {},
        &quot;cordova-plugin-advanced-http&quot;: {
          &quot;OKHTTP_VERSION&quot;: &quot;3.10.0&quot;
        },
        &quot;cordova-plugin-email-composer&quot;: {
          &quot;ANDROID_SUPPORT_V4_VERSION&quot;: &quot;27.+&quot;
        },
        &quot;cordova-plugin-android-permissions&quot;: {},
        &quot;cordova-plugin-firebasex&quot;: {
          &quot;ANDROID_FIREBASE_ANALYTICS_VERSION&quot;: &quot;17.0.0&quot;,
          &quot;FIREBASE_ANALYTICS_COLLECTION_ENABLED&quot;: &quot;true&quot;,
          &quot;FIREBASE_PERFORMANCE_COLLECTION_ENABLED&quot;: &quot;true&quot;,
          &quot;FIREBASE_CRASHLYTICS_COLLECTION_ENABLED&quot;: &quot;true&quot;,
          &quot;ANDROID_ICON_ACCENT&quot;: &quot;#FF00FFFF&quot;,
          &quot;ANDROID_PLAY_SERVICES_TAGMANAGER_VERSION&quot;: &quot;17.0.0&quot;,
          &quot;ANDROID_FIREBASE_MESSAGING_VERSION&quot;: &quot;20.0.0&quot;,
          &quot;ANDROID_FIREBASE_CONFIG_VERSION&quot;: &quot;19.0.3&quot;,
          &quot;ANDROID_FIREBASE_PERF_VERSION&quot;: &quot;19.0.1&quot;,
          &quot;ANDROID_FIREBASE_AUTH_VERSION&quot;: &quot;19.1.0&quot;,
          &quot;ANDROID_CRASHLYTICS_VERSION&quot;: &quot;2.10.1&quot;,
          &quot;ANDROID_CRASHLYTICS_NDK_VERSION&quot;: &quot;2.1.1&quot;
        },
        &quot;cordova-plugin-camera&quot;: {
          &quot;ANDROID_SUPPORT_V4_VERSION&quot;: &quot;27.+&quot;
        },
        &quot;cordova-plugin-is-debug&quot;: {}
      },
      &quot;platforms&quot;: [
        &quot;browser&quot;,
        &quot;android&quot;,
        &quot;ios&quot;
      ]   } }
  </code></pre>
  <p><strong>What I tried</strong>
  without success.
  Deleting node_modules manually (then <code>npm i</code>), restarting systems and use of commands below...</p>
  <pre><code>ionic repair
  npm i @angular-devkit/architect@latest @angular-devkit/build-angular@latest @angular-devkit/core@latest @angular-devkit/schematics@latest
  
  npm uninstall -g @angular/cli
  npm cache verify
  npm install -g @angular/cli@latest
  npm install
  
  npm i @ionic/angular-toolkit
  
  npm audit fix
  npm audit fix --force
  
  
  npm update
  ng update
  ng update @angular/cli
  ng update @angular/core
  </code></pre>
  <p><strong>Ionic Serve</strong> Additional error info on <code>ionic serve</code>:</p>
  <pre><code>[ng] Schema validation failed with the following errors:
  [ng]   Data path &quot;&quot; should NOT have additional properties(es5BrowserSupport).
  
  [ERROR] ng has unexpectedly closed (exit code 1).
  
          The Ionic CLI will exit. Please check any output above for error details.
  </code></pre>