Skip to content

[flutter_tools] "Unknown flutter tag" crash during flutter upgrade #133441

@dotupNET

Description

@dotupNET

Edit by @christopherfujino This is a bug in the tool. Currently known safe workarounds to upgrade are to:

  1. flutter upgrade --force
  2. change your terminal's working directory to your Flutter SDK repo (you can find this under flutter doctor -v), then run flutter upgrade

Two hotfixes are currently being worked on, however, users will still need to use these workarounds to get them:

A postmortem report on this is forthcoming.


Is there an existing issue for this?

Steps to reproduce

Run "flutter upgrade" on 3.13.0 stable

Actual results

I got this error:

Unknown flutter tag. Abandoning upgrade to avoid destroying local changes. It is recommended to use git directly if not working on an official channel.

Logs

No response

Flutter Doctor output

Doctor output
xxx ~ % flutter doctor -v
[✓] Flutter (Channel stable, 3.13.0, on macOS 13.5 22G74 darwin-arm64, locale de-DE)
    • Flutter version 3.13.0 on channel stable at /Users/xxx/data/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision efbf63d9c6 (12 days ago), 2023-08-15 21:05:06 -0500
    • Engine revision 1ac611c64e
    • Dart version 3.1.0
    • DevTools version 2.25.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at /Users/xxx/Library/Android/Sdk
    • Platform android-33, build-tools 33.0.2
    • ANDROID_HOME = /Users/xxx/Library/Android/Sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E300c
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] IntelliJ IDEA Ultimate Edition (version 2020.3.4)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 60.1.2
    • Dart plugin version 203.8292

[✓] VS Code (version 1.81.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.70.0

[✓] Connected device (3 available)
    • Nokia 5 4 (mobile) • GZQL1849FAL41701508 • android-arm64  • Android 12 (API 31)
    • macOS (desktop)    • macos               • darwin-arm64   • macOS 13.5 22G74 darwin-arm64
    • Chrome (web)       • chrome              • web-javascript • Google Chrome 116.0.5845.110

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Metadata

Metadata

Labels

P0Critical issues such as a build break or regressioncustomer: crowdAffects or could affect many people, though not necessarily a specific customer.found in release: 3.13Found to occur in 3.13has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool teamworkaround availableThere is a workaround available to overcome the issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions