What is the issue?
xxx@xxx-Inspiron-14-3467:~/xxx$ flutter pub run build_runner build[INFO] Generating build script... [INFO] Generating build script complete
After spending more that 3 hours, finally I managed to solved.
For those who have upgraded to flutter version 1.20.1 or above, make sure you add this line in pubspec.yaml.
pubspec.yaml
dependency_overrides: analyzer: '0.39.14'