-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build_runner build failed #692
Comments
I also encountered the same problem, so I switched from flutter 1.20.2 to 1.17.5, and it worked normally on 1.17.5 |
use your official example on this page: when I run it says: Precompiling executable... [WARNING] Deleted previous snapshot due to missing asset graph. [INFO] Initializing inputs [INFO] Checking for unexpected pre-existing outputs.... [INFO] Running build... Bad state: Unexpected diagnostics: Bad state: Unexpected diagnostics: Bad state: Unexpected diagnostics: Bad state: Unexpected diagnostics: Bad state: Unexpected diagnostics: this is my version dev_dependencies: build_runner: ^1.0.0 dependencies: json_annotation: ^3.0.0 Flutter 1.20.2 Tools • Dart 2.9.1 |
I manually downgraded the flutter version, you can execute "flutter version + version number" to downgrade to the version you want to use |
This issue is blocking me from upgrading Flutter version to 1.20. |
What version of |
Looking into this one possible solution is set your I am trying to figure out the real issue here, the sdk seems to be using invalid syntax |
Just to follow up here this was definitely the problem, see the related sdk issue about the syntax change dart-lang/language#376. Since then the support for You need to ensure you get an older analyzer version in order to successfully analyze this sdk, although I am not totally sure exactly what version you need I know that |
Closing this out as it's not specific to |
use your official example on this page:
https://pub.dev/packages/json_serializable
when I run
flutter packages pub run build_runner build
it says:
and nothing generated
this is my version
Hope you to tell me how can I do
thanks!
The text was updated successfully, but these errors were encountered: