aloisdeniel / vsts-flutter-tasks

Flutter build tasks for Azure DevOps Pipelines/TFS.
https://marketplace.visualstudio.com/items?itemName=aloisdeniel.flutter
105 stars 83 forks source link

Error in Flutter Build Task. #68

Closed ranjan-roy closed 3 years ago

ranjan-roy commented 3 years ago

I get following error during build. log.txt

dont have any more details. in log I get following log.

[error]Error: The process 'C:\hostedtoolcache\windows\Flutter\1.22.4-stable\windows\flutter\bin\flutter.bat' failed with exit code 1

Max-Might commented 3 years ago

The actual error in your log file says it is because your build number value is invalid. It only accepts integers.

buildNumber: 20201125.6 was not a valid integer value.

You also do not need to pass a build number. If you leave it out the values from the pubspec.yaml file will be used for build name and build number.

rajatanantharam commented 3 years ago

Add name: $(Date:yyyyMMdd)$(Rev:r) on top of your build yaml. That'll fix it. This is an open issue on flutter.

ranjan-roy commented 3 years ago

Add name: $(Date:yyyyMMdd)$(Rev:r) on top of your build yaml. That'll fix it. This is an open issue on flutter.

I Get following error Error on line 1, column 7 of pubspec.yaml: "name" field must be a valid Dart identifier.

1 │ name: $(Date:yyyyMMdd)$(Rev:r)

│ ^^^^^^^^^^^^^^^^^^^^^^^^

rajatanantharam commented 3 years ago

Add name: $(Date:yyyyMMdd)$(Rev:r) on top of your build yaml. That'll fix it. This is an open issue on flutter.

I Get following error Error on line 1, column 7 of pubspec.yaml: "name" field must be a valid Dart identifier.

1 │ name: $(Date:yyyyMMdd)$(Rev:r)

│ ^^^^^^^^^^^^^^^^^^^^^^^^

@ranjan-roy : Add it at the top of the azure-pipelines.yaml. The pubspec is the specification for your flutter module.

ranjan-roy commented 3 years ago

Add name: $(Date:yyyyMMdd)$(Rev:r) on top of your build yaml. That'll fix it. This is an open issue on flutter.

I Get following error Error on line 1, column 7 of pubspec.yaml: "name" field must be a valid Dart identifier. ╷ 1 │ name: $(Date:yyyyMMdd)$(Rev:r) │ ^^^^^^^^^^^^^^^^^^^^^^^^ ╵

@ranjan-roy : Add it at the top of the azure-pipelines.yaml. The pubspec is the specification for your flutter module.

@rajatanantharam This helped. also got a referance here