flutter报错:
The Android Gradle plugin supports only kotlin-android-extensions Gradle plugin version 1.6.20 and higher.
The following dependencies do not satisfy the required version
project ':flutter_image_compress' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10
找到对应的插件: flutter_image_compress,路径:在项目根目录下:External Librayies->Flutter Plugins-> flutter_image_compress,在android -> build.gridle中修改ext.kotlin_version 的版本号:
解决方法:
image.png
修改所有报错的插件,一直到不报错为止,项目就可以正常运行了。