The new AGP of Kotlin demands the DSL format, and build.gradle have kotlin versio.
So the line of aplly:
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" apply from: project(':flutter_config').projectDir.getPath() + "/dotenv.gradle"
Is not compatible to new projects. So we have upgrade the package adding the new format line.
We should have done this a long time ago.