Urgent.News

What's breaking now, across thousands of outlets.

Tech

Q&D: Flutter App and Android-SDK

After having upgraded few tools on machine, one of my application was totally unable to run. I got a lot of warnings, especially this one: Warning: Flutter support for your project's Gradle version (8.14.0) will soon be dropped. Please upgrade your Gradle version to a version of at least 9.1.0 soon. Alternatively, use the flag "--android-skip-build-dependency-validation" to bypass this check and…

A Flutter application experienced issues after a few tools were upgraded on the machine. The application failed to run due to warnings related to Gradle version and Java compatibility. The warning message indicated that the Gradle version (8.14.0) would soon be dropped and that upgrading to a newer version (9.1.0 or newer) was recommended. Alternatively, the flag `--android-skip-build-dependency-validation` could be used to bypass the check.

The Android SDK upgrade also caused problems. The old version of the Android SDK, known as "Panda 4," was replaced with the new version called "Quail 4." The source code referenced the need to upgrade both the Android SDK Platforms and Tools. Instructions were provided on how to do this through the Android Studio's SDK Manager or using the `sdkmanager` tool.

In addition to these issues, the development machine was using the `mise` tool to manage Flutter and Dart versions. The source mentioned that the `.tool-versions` file stored the latest versions of these applications. To upgrade them, the user needed to run `mise upgrade` in their project directory.

The user's environment was messy, with multiple tools installed and configured in various locations. To resolve this, the source recommended cleaning up the environment variables and setting the correct paths for `ANDROID_HOME`, `PATH`, `CHROME_EXECUTABLE`, and `EDITOR`.

After addressing the Gradle version issue and recreating the `android` directory from the Flutter project root, the application could be run again using the `flutter run` command.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Regular Expressions Without the Fear

Most developers I know have a love-hate relationship with regex. They copy a pattern from Stack Overflow, it works, they move on, and they hope they never have to touch it again. I did that for years.

More from Thursday 17 September →