William Saborido
William Saborido

Reputation: 15

Flutter framework crash after accepting android licenses

I just formatted my PC and reinstalled all my dev stack.

I got this problem when reinstalled all my Flutter stuff (Android Studio, OpenJdk 17.0.2, Flutter framework).

So, I just wanted to know what happended, if someone else just got this same error (googling it for some hours and still no clue).

After accepting android licenses, it finishes with a crash and a long stack log.

Seems all the licenses was accepted successfully, still, the command ends with the log below. My flutter app so far still works when running it on debug mode (

The output after accepting licenses with flutter doctor --android-licenses: https://pastebin.com/eGfxwEfH

Here's flutter doctor output under Windows 11:

[✓] Flutter (Channel stable, 3.27.1, on Microsoft Windows [Version
10.0.22631.4890], locale pt-BR)
    • Flutter version 3.27.1 on channel stable at C:\Users\willi\.puro\envs\dev-3-27-1\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 17025dd882 (10 weeks ago), 2024-12-17 03:23:09 +0900
    • Engine revision cb4b5fff73
    • Dart version 3.6.0
    • DevTools version 2.40.2

[✓] Windows Version (Installed version of Windows is version 10 or higher)

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.1)
    • Android SDK at C:\Users\willi\AppData\Local\Android\sdk
    • Platform android-35, build-tools 35.0.1
    • Java binary at: D:\OpenJDK\17.0.2\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.2+8-86)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[✓] Visual Studio - develop Windows apps (Visual Studio Community 2022
17.13.1)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.13.35818.85
    • Windows 10 SDK version 10.0.22621.0

[✓] Android Studio (version 2024.2)
    • Android Studio at C:\Program Files\Android\Android Studio
    • 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 21.0.5+-12932927-b750.29)

[✓] VS Code (version 1.97.2)
    • VS Code at C:\Users\willi\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.104.0

[✓] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.22631.4890]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 133.0.6943.127
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 133.0.3065.82

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

• No issues found!

Thanks in advance!

Upvotes: 0

Views: 28

Answers (1)

William Saborido
William Saborido

Reputation: 15

I decided to use Puro to test several Flutter stable versions, and found out that from stable 3.22.3 and below, I dont get that crash, only from stable 3.24.5 and up.

I tested on my work machine also (Windows 11), same results. So, now I have a dualboot with Linux on my home machine, and will test there, and since I still can compile apps with any framework version, once the Android licenses was accepted after all, I'll leave it as is, and check if someone is experiencing this error as well and find out what's happening.

Upvotes: 0

Related Questions