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
- Lightmap has artifacts when Generating Lighting
- Editor crashes when starting a new game session using Direct3D12 Graphics API
- Play on awake does not work with an audio random container when instantiating a game object
- Play on awake does not work with an audio random container when loading a scene
- Prefab components are not rendered correctly in the Inspector Window when "HideFlags.HideInInspector" is used
Add comment