unity-builder icon indicating copy to clipboard operation
unity-builder copied to clipboard

When using Build Profiles the AndroidExportType sets the file target and can conflict

Open alexeSGN opened this issue 5 months ago • 0 comments

Issue When using Build Profiles with Android builds the AndroidExportType must be set. This can result in a Build Profile targeting a bundle when the AndroidExportType is a package. unity-builder sets the output file as an apk. When the build profile and the outfile file type are mismatched we will hit a Gradle failure when trying to process the final build output.

How to reproduce Specify a Build Profile with Bundle output, and AndroidExportType set to androidPackage

Expected behavior The Build Profile should either ignore or override the AndroidExportType. Simplest fix overrides that in the Builder, proper fix would be to ignore invalid params to the Unity invoke for Build Profiles.

alexeSGN avatar Jun 24 '25 22:06 alexeSGN