My project requires an earlier version of Gradle, version 4.10.1
That is over two years old. You should set aside some time to address whatever problems are in your build scripts that require an old version of Gradle.
Is there something im doing wrong?
In your project (top-level) build.gradle
file, ensure that your com.android.tools.build:gradle
dependency is set to 3.3.3
:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:3.3.3"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
The Android Gradle Plugin 3.3.3 still supports Gradle 4.10.1. Anything newer does not. See this table of Android Gradle Plugin and Gradle versions.