Gradle build failed to produce an .aab file. It's likely that this file was generated under /Users/.../build, but the tool couldn't find it.
facing an issue when building first android release build. shorebird release android
error :
#1 _exitWithExpectedFileNotFound (package:flutter_tools/src/android/gradle.dart:1126:3)
#2 findBundleFile (package:flutter_tools/src/android/gradle.dart:1099:3)
#3 AndroidGradleBuilder.buildGradleApp (package:flutter_tools/src/android/gradle.dart:563:31)
<asynchronous suspension>
#4 AndroidGradleBuilder.buildAab (package:flutter_tools/src/android/gradle.dart:254:5)
<asynchronous suspension>
#5 BuildAppBundleCommand.runCommand (package:flutter_tools/src/commands/build_appbundle.dart:178:5)
<asynchronous suspension>
#6 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1450:27)
<asynchronous suspension>
#7 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#8 CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#9 FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:421:9)
<asynchronous suspension>
#10 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#11 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:364:5)
<asynchronous suspension>
#12 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:131:9)
<asynchronous suspension>
#13 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#14 main (package:flutter_tools/executable.dart:94:3)
<asynchronous suspension>```
Hello, could you please share the results of shorebird doctor. Also your flutter version.
shorebird release android was also failing on me, but I figured out I was using an Android Gradle Plugin that had a bug.
Maybe you could also share the log file or the Caused by errors that show before the picture you shared.
[ ] Caused by: com.android.tools.r8.internal.Hj: com.android.tools.r8.internal.Y10: Unused argument with users in androidx.media3.exoplayer.dash.manifest.DashManifest androidx.media3.exoplayer.dash.manifest.DashManifestParser.parseMediaPresentationDescription(org.xmlpull.v1.XmlPullParser, android.net.Uri) [ ] at com.android.tools.r8.internal.Hj.a(R8_3.3.70_49b71801b8b3de79ea68cec3bf950786c8f90f7a560cea4a2d23a82079b17d04:6)
Would you mind sharing the full error output (usually, this includes a message). There also should be a log file printed as part of the error output; sharing that would be helpful as well.
I've had to revert back to using project.buildDir from project.layout.buildDirectory in settings.gradle.
i.e.
... subprojects { project.buildDir = "${rootProject.buildDir}/${project.name}" } ...
Let us know if we can be of further assistance.