We are using your task in our build on an Azure DevOps server.
Often, we get the error:
Error: No pubspec.yaml file found. This command should be run from the root of your Flutter project.
I have rechecked it often, and we are in the right folder where I can find a pubspec.yaml. Our current fix is to delete the Flutter folder under the tools directory per agent. After that, the task downloads a fresh version, and with this one, we are able to execute build 2-3 times before needing to repeat the process.
Additionally, we sometimes need to clear the Gradle cache or pub cache before the build works again with the process from above.
Hi,
We are using your task in our build on an Azure DevOps server. Often, we get the error:
Error: No pubspec.yaml file found. This command should be run from the root of your Flutter project.
I have rechecked it often, and we are in the right folder where I can find a pubspec.yaml. Our current fix is to delete the Flutter folder under the tools directory per agent. After that, the task downloads a fresh version, and with this one, we are able to execute build 2-3 times before needing to repeat the process.
Additionally, we sometimes need to clear the Gradle cache or pub cache before the build works again with the process from above.
Best regards