I'm trying to build a project but it keeps giving me this gradle error
I have upgraded my gradle 3.3 and my android plugin version to 2.3.3 but it's still giving me error
Any help would be appreciated
Error:

Error:(40, 0) Gradle DSL method not found: 'implementation()'
Possible causes:- The project 'sms-mining-android' may be using a version of the Android Gradle plug-in that does not contain the method (e.g. 'testCompile' was added in 1.1.0).
Upgrade plugin to version 2.3.3 and sync project
- The project 'sms-mining-android' may be using a version of Gradle that does not contain the method.
Open Gradle wrapper file
- The build file may be missing a Gradle plugin.
Apply Gradle plugin

Event Log:
Gradle sync failed: Could not find method implementation() for arguments [com.android.support.constraint:constraint-layout:1.0.2] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

build.gradle file:

```
buildscript {
ext.kotlin_version = '1.1.2-5'
ext.support_lib_version = '25.3.1'
ext.junit_version = '4.12'
ext.constraint_layout_version = '1.0.2'
ext.rxjava_version = '1.1.3'
ext.rxandroid_version = '1.1.0'
ext.mpchart_version='v3.0.2'
repositories {
    jcenter()
}
dependencies {
    classpath 'com.android.tools.build:gradle:2.3.3'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}}

allprojects {
repositories {
    jcenter()
    maven { url "https://jitpack.io" }
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}

```

gradle-wrapper.properties file:

```
 #Mon Jun 19 10:49:52 IST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip

```