Azure DevOps CI / CD not installing latest flutter version

1.2k Views Asked by At

My Azure DevOps configuration ask CI / CD to install latest version of flutter as you can see in the snapshot:

enter image description here

But Flutter old stable version "2.2.1-stable" is getting install

enter image description here

It seems google has changed their flutter download url so Azure not able to fetch latest version:

Download URL Flutter Stable 2.2.1 (OLD release URL): https://storage.googleapis.com/flutter_infra/releases/stable/macos/flutter_macos_2.2.1-stable.zip

Download URL Flutter Stable 2.5.1 (New Release URL): https://storage.googleapis.com/flutter_infra_release/releases/stable/macos/flutter_macos_2.5.1-stable.zip

They have not added any new release on the old URL so Azure fetching always last stable release which is 2.2.1

enter image description here

Any solutions so Azure DevOps script can download always latest version of Flutter?

2

There are 2 best solutions below

1
On

The extension aloisdeniel/vsts-flutter-tasks seems to be not mantained. Please try use this one Fluttter install - link to extension is here.

Please take a look here also

Just if you stumble across this package. It doesn't seem maintained. Someone was so kind and improved it and is also maintaining it currently. See https://github.com/hey24sheep/azure-flutter-tasks

0
On

To get the latest version you can use:

 - script: |
      brew install --cask flutter