I run UCB with Build App Bundles (.aab) flag set to yes. The build completes successfully. However no files get generated. I see only the following options:
No Download
Push to Xiomi
Push to Unity Distribution Portal
View Development Android Production
Full Log
Delete build
How can I get the AAB file?
In general, when there’s a successful build with no artifact generated that’s actually just a sign that the some process in the build failed without using the correct error codes (cancellations due to timeouts are often the same thing except the process failed in a more stupid way).
In this case, it looks like Gradle failed to build your AAB due to “FileNotFoundException: Temp/gradleOut/build/outputs/bundle/release/gradleOut.aab does not exist”. This sounds quite similar to the issue reported here - I would suggest taking a look at your gradle config file if you have one.
Upgrading Unity to a later version may also resolve these issues, 2018.3.1f1 is one of the earliest releases to support AAB and I suspect there would be several bugs that are worked out in later releases.
Are we going to have some support fot 2017.X UCB building AABs?
That’s a question (probably a feature request, really) for the mobile team.
Thank you for a quick response; I am going to look into the gradle config file and also will try higher Unity version and report back here.
Update*:
I tried different things but what eventually worked was upgrading my gradle file to the default (mainTemplate) provided with Unity 2018.3.1f1. The AAB file was generated and was successfully submitted to Google Play store.
1 Like
Hello;
How did you updated the gradle file?
I have the same problem, can you help me please?
@[ertunaozderya]( UCB not creating AAB output file members/ertunaozderya.3394361/): I noticed the mainTemplate file had changed with the Unity version so I replaced what I had (which was custom one I had created earlier) with the latest version of the templates that came w Unity and did a cloud build with it. What I might suggest is if you have custom template to save it someplace; upgrade to a stable Unity version. Make sure the template is default. from Unity. Manually add anything you have from your old custom file and retry UCB.
Thanks, i will try it.
Btw can you share your mainTemplate.gradle and which unity version you are using? (sorry if i accidentally disturbing you, im new at unity)