command flutter build appbundle
Running "flutter pub get" in my_app...
Resolving dependencies...
async 2.10.0 (2.11.0 available)
characters 1.2.1 (1.3.0 available)
collection 1.17.0 (1.18.0 available)
js 0.6.5 (0.6.7 available)
matcher 0.12.13 (0.12.16 available)
material_color_utilities 0.2.0 (0.8.0 available)
meta 1.8.0 (1.9.1 available)
path 1.8.2 (1.8.3 available)
petitparser 5.1.0 (6.0.1 available)
source_span 1.9.1 (1.10.0 available)
stack_trace 1.11.0 (1.11.1 available)
stream_channel 2.1.1 (2.1.2 available)
test_api 0.4.16 (0.6.1 available)
xml 6.2.2 (6.4.2 available)
Got dependencies!
💪 Building with sound null safety 💪
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:bundleReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.Aapt2ProcessResourcesRunnable
> Android resource linking failed
/home/michael/github/first/my_app/build/app/intermediates/bundle_manifest/release/AndroidManifest.xml:16: error: resource style/LaunchTheme (aka com.ga72kud.namer_app:style/LaunchTheme) not found.
/home/michael/github/first/my_app/build/app/intermediates/bundle_manifest/release/AndroidManifest.xml:31: error: resource style/NormalTheme (aka com.ga72kud.namer_app:style/NormalTheme) not found.
error: failed processing manifest.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:processReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
> Android resource linking failed
/home/michael/github/first/my_app/build/app/intermediates/packaged_manifests/release/AndroidManifest.xml:16: error: resource style/LaunchTheme (aka com.ga72kud.namer_app:style/LaunchTheme) not found.
/home/michael/github/first/my_app/build/app/intermediates/packaged_manifests/release/AndroidManifest.xml:31: error: resource style/NormalTheme (aka com.ga72kud.namer_app:style/NormalTheme) not found.
error: failed processing manifest.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================
* Get more help at https://help.gradle.org
BUILD FAILED in 24s
Running Gradle task 'bundleRelease'... 25.4s
Gradle task bundleRelease failed with exit code 1
Hi I am new to gradle, I want to use the flutter command flutter build appbundle and you see above the terminal output. I do not know how to fix the error.
That is not a Gradle problem at all, more than that you use Gradle to run the build.
If you look closely at the output, you see that your AndroidManifest.xml
file contains errors.
If you need help with that, this is the wrong forum, but you should ask in some Android or Flutter community instead.
Dear Björn, thank you that you helped me with that.
1 Like