The perils of updates
So I’ve been working on my game and to save time build the web project as a Linux app. It compiles it and runs it quicker than doing it with Chrome. Until yesterday.
After doing the usual sudo apt update and then upgrade, and snap refresh.I had updated Flutter (and Dart) and afterwards, upgraded all of the pubspec.yaml and finally ran Flutter Doctor. It output this
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.38.7, on Ubuntu 24.04.3 LTS 6.14.0-37-generic, locale en_US.UTF-8)
[!] Android toolchain - develop for Android devices (Android SDK version 36.1.0)
✗ cmdline-tools component is missing.
Try installing or updating Android Studio.
Alternatively, download the tools from https://developer.android.com/studio#command-line-tools-only and make sure to set the ANDROID_HOME environment variable.
See https://developer.android.com/studio/command-line for more details.
✗ Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/to/linux-android-setup for more details.
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Connected device (2 available)
[✓] Network resources
! Doctor found issues in 1 category.
I’m not worried about Android so Linux and Chrome were fine; everything is up to date. Until I tried to run the app (as Linux) and got the message at the top. It says
ERROR: Target dart_build failed: Error: Failed to find any of [ld.lld, ld] in LocalDirectory: '/snap/flutter/149/usr/lib/llvm-10/bin'
I can still run it as a Chrome web app so it’s not the end of the world; more a speed bump than a road block but still annoying. I looked up the error but there was nothing really helpful. Installing lld did not fix it.
I asked an AI (Chrome what I could do and it have me three alternatives).
- Install a symbolic link to lld but that failed as the area is read only. Even with sudo.
- Refresh from a different snap channel but even with a full reboot after doing that it made no difference.
- Suggests uninstalling Flutter from snap and install it manually, so that’s what I guess I have to do.
What a faff!
One of Flutter’s big strengths is its supports for theming; you can define or change colours for every aspect of your UI but it can be a bit complicated. Now an open source project provides a way to simplify things. It’s called 
