Bad state: Unexpected diagnostics: after flutter upgrade to 1.20.1

前端 未结 3 1883
灰色年华
灰色年华 2020-12-21 12:49

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         


        
3条回答
  •  长情又很酷
    2020-12-21 12:57

    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.

    dependency_overrides:
      analyzer: '0.39.14'
    

提交回复
热议问题