After upgrading to Flutter 3.32.0, Dart 3.8.0, and DevTools 2.45.1, I'm encountering an issue when building a release app bundle (AAB).
The build fails with this error:
Release app bundle failed to strip debug symbols from native libraries. Please run flutter doctor and ensure that the Android toolchain does not report any
issues.
I ran flutter clean
and flutter pub get
. In my build.gradle file, I tried building both with and without the following NDK configuration:
ndk { debugSymbolLevel = "full" }
But the issue still persists. Has anyone else faced this or knows how to fix it?
Flutter docotor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.32.0, on Microsoft Windows [Version 10.0.19043.2364], locale en-US)
[√] Windows Version (10 Pro 64-bit, 21H1, 2009)
[√] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[√] Chrome - develop for the web
[X] Visual Studio - develop Windows apps
X Visual Studio not installed; this is necessary to develop Windows apps.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2024.2)
[√] VS Code (version 1.100.2)
[√] Connected device (3 available)
[√] Network resources
! Doctor found issues in 1 category.
There is an open Issue related to this on github check this comment and this one it provided the solution claiming it worked for him/her the solution is remove this line from android/app/build.gradle
ndk { debugSymbolLevel 'FULL' }