FAILURE: Build failed with an exception flutter_image_compress

Hey
Trying to use flutter_image_compress package in my Flutter app.
Keep getting this issue when build:

FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring project ':flutter_image_compress'.
> Failed to notify project evaluation listener.
   > java.lang.AbstractMethodError (no error message)

My gradle information is:

buildscript {
ext.kotlin_version = '1.2.21'
repositories {
    google()
    jcenter()
}

dependencies {
    classpath 'com.android.tools.build:gradle:3.3.1'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}

}

Could use some help here, couldn’t find a solution anywhere