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.
- 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 'com.android.support:support-v4:27.1.0' } }
- Installing a plugin to pin the version