FAILURE: Build failed with an exception flutter_image_compress

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 {

dependencies {
    classpath ''
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"


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