I faced this problem too and I fixed it by doing the following:
In project level build.gradle, I have ext.kotlin_version = '1.3.10'
buildscript {
ext.kotlin_version = '1.3.10'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.0'
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 {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
ext {
roomVersion = '1.0.0'
archLifecycleVersion = '1.1.0'
}
in your file pubspec.yaml add lines,
The real problem is that pub.dev contains a previous version of this library (3.1.0). How to update:
#video_compress: ^3.1.0 //coment this line and add ->
video_compress:
git:
url: https://github.com/jonataslaw/VideoCompress.git
ref: master