Here is the exception i was keep getting while running “flutter build appbundle”
A problem occurred evaluating project ':app'.
> No signature of method: build_74xe9223gsa49leuyu32efngg.android() is applicable for argument types: (build_74xe9223gsa49leuyu32efngg$_run_closure2) values: [build_74xe9223gsa49leuyu32efngg$_run_closure2@5a91a9f0]
To identify what is causing issue, i commented all arguments inside android function of build.gradle then uncommented one by one and ran the command.
Finally identified while adding below lines i am getting error,
lintoptions{
disable 'InvalidPackage'
}
The problem here is, the gradle build is case sensitive. So instead of ‘lintOptions’ i used ”lintoptions’ which was causing issue.
The correct format would be,
lintOptions{
disable 'InvalidPackage'
}