hey24sheep / azure-flutter-tasks

Easily build and deploy with latest Flutter build tasks for Azure DevOps Pipelines Tasks
https://marketplace.visualstudio.com/items?itemName=Hey24sheep.flutter
MIT License
89 stars 22 forks source link

Unable to run command flutter pub run build_runner build --delete-conflicting-outputs #82

Closed aman-jham closed 1 year ago

aman-jham commented 1 year ago
2023-05-28T11:55:12.8004283Z ##[section]Starting: Run Flutter pub run build_runner build --delete-conflicting-outputs
2023-05-28T11:55:12.8007531Z ==============================================================================
2023-05-28T11:55:12.8007651Z Task         : Flutter Command Task
2023-05-28T11:55:12.8007713Z Description  : Launch a custom Flutter command with custom arguments.
2023-05-28T11:55:12.8007815Z Version      : 0.3.0
2023-05-28T11:55:12.8007869Z Author       : Hey24sheep
2023-05-28T11:55:12.8007939Z Help         : Don't forget to insert a 'Flutter Install' task before. [More Information](https://github.com/hey24sheep/azure-flutter-tasks)
2023-05-28T11:55:12.8008082Z ==============================================================================
2023-05-28T11:55:12.9691131Z [command]/opt/hostedtoolcache/Flutter/3.10.2/linux/flutter/bin/flutter pub run build_runner build --delete-conflicting-outputs
2023-05-28T11:55:24.1015982Z Failed to build build_runner:build_runner:
2023-05-28T11:55:24.1018766Z ../../../.pub-cache/hosted/pub.dev/build_runner-2.3.2/lib/src/build_script_generate/bootstrap.dart:76:40: Error: Method not found: 'NullThrownError'.
2023-05-28T11:55:24.1020802Z       final error = e[0] as Object? ?? NullThrownError();
2023-05-28T11:55:24.1022561Z                                        ^^^^^^^^^^^^^^^
2023-05-28T11:55:24.2701544Z ##[error]Error: The process '/opt/hostedtoolcache/Flutter/3.10.2/linux/flutter/bin/flutter' failed with exit code 1
2023-05-28T11:55:24.2735681Z ##[section]Finishing: Run Flutter pub run build_runner build --delete-conflicting-outputs
aman-jham commented 1 year ago

Fixed issue flutter version is the root cause.