Skip to main content

Ionic / Cordova Android build errors

By March 15, 2018January 14th, 2020No Comments

As soon as android sdk releases an update. Gradle updates it automatically. Many a times it results in the build error. It is important to pin some of the libraries to a specific version.

There are many ways to do this.

  1. Change in build-extras.gradle

    This will wipe out everytime you remove the platform. You need to manually add those lines again. Perhaps we could have a hook here do the job as well.

    configurations.all {
        resolutionStrategy {
            force ''
  2. Installing a plugin to pin the version