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
- Search field in UI Builder's Library has no character limit
- Changing the value in UI Builder by dragging increases it by a few thousand points when reaching the borders of the screen
- ARM64 architecture DLL incorrectly copied instead of x64 when building for Windows x64
- Crash on TypeTreeIterator::GetNode when opening a specific folder
- Crash on WriteSerializedAssetsV2 when (re)entering the Play Mode in a specific project when IEnumerator Start() is used
Add comment