I am trying to run a clean build of an android project using gradlew on TeamCity. It runs a lot of tasks but then returns this error:
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Then it fails. What is the cause of this issue and how can I fix it?