I have same problem with my project, which stopped work. Looks like there was different code to integrate module.
You need to replace this:
apply from: filePath
by this:
evaluate(new File(
settingsDir.parentFile,
'flutter_module/.android/include_flutter.groovy'
))
Possibly, update some parts of base Android application will help. But i didn't research this yet.