Search Issue Tracker
Active
Votes
0
Found in
2021.3.33f1
2022.3.15f1
2023.2.3f1
2023.3.0a17
Issue ID
UUM-57973
Regression
Yes
[Android] Unity does not include the ".aab" extension for an AppBundle when it is built via script with the buildPlayerOptions.locationPathName = "AppName.apk" and EditorUserBuildSettings.buildAppBundle = true
Reproduction steps:
1. Open the attached project “ReproProject”
2. Select (menu bar: Tools > Build example) to build
3. Check the build type once the building process is finished
Expected result: The build type is “AOSBuild.aab”
Actual result: The build type is “AOSBuild.apk”
Reproducible with: 2020.3.45f1, 2020.3.48f1, 2021.3.33f1, 2022.3.15f1, 2023.2.3f1, 2023.3.0a17
Not reproducible with: 2020.3.44f1
Testing environment: macOS(Intel) 14.0 Sonoma, Windows 10 Pro 22H2
Notes:
- When the Build Settings Window is used to build the App Bundle( Google Play) and the name of the app to be built is saved as “testing.apk” the generated build will have a type of “testing.apk.aab”.
- Code snippet of the user’s script
{noformat}
[MenuItem("Tools/Build example")]
public static void MyBuild()
{
EditorUserBuildSettings.buildAppBundle = true;
BuildPlayerOptions buildPlayerOptions = new BuildPlayerOptions();
buildPlayerOptions.scenes = new[] { "Assets/Scenes/New Scene.unity" };
buildPlayerOptions.locationPathName = "AOSBuild.apk.aab";
buildPlayerOptions.target = BuildTarget.Android;
buildPlayerOptions.options = BuildOptions.None;
BuildPipeline.BuildPlayer(buildPlayerOptions);
}
{noformat}
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Incorrect vehicle rotation when using ForceMode.VelocityChange
- [Linux] Dropdown Menus are filled with empty entries when the Menu intersects with the Editors borders
- [HDRP] [Metal] Tiled artefacts when using DRS
- [HDRP] Empty template starts with incorrect Physically Based Sky ground
- Big chunk of "Untracked" memory in the Memory Profiler screenshot when a custom .obj file is loaded while in Play Mode
Add comment