You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
KeyNotFoundException: The given key 'androidVersionCode' was not present in the dictionary.
at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <7ab397abd13b41e3ad74fc63bc0bd4a1>:0
at UnityBuilderAction.Builder.BuildProject () [0x0011b] in C:\github\workspace\Assets\Editor\UnityBuilderAction\Assets\Editor\UnityBuilderAction\Builder.cs:46
(Filename: Assets/Editor/UnityBuilderAction/Assets/Editor/UnityBuilderAction/Builder.cs Line: 46)
executeMethod method UnityBuilderAction.Builder.BuildProject threw exception.
Aborting batchmode due to failure:
executeMethod method UnityBuilderAction.Builder.BuildProject threw exception.
Exiting without the bug reporter. Application will terminate with return code 1
Build failed, with exit code False"
Regardless of the format (non-string-escaped as in the docs or string-escaped as in the examples), unity-builder lumps it into a single object.
Examples:
androidVersionCode: 1
customParameters: "-androidVersionCode 1"
customParameters: -androidVersionCode 1
How to reproduce
Running a job from this repository (or presumably any that uses windows) will cause this issue no matter how the androidVersionCode is passed to it.
Expected behavior
The "dictionary" value for androidVersionCode should be passed, as it is in the UNIX-like options (macos/linux) listed above:
Bug description
The current Windows build script doesn't include the
androidVersionCode
env pass-through that bothmacos
andlinux
scripts do. This, in turn causes the error you can see in our GitHub Action (also shown below).From GitHub Actions:
Regardless of the format (non-string-escaped as in the docs or string-escaped as in the examples),
unity-builder
lumps it into a single object.Examples:
androidVersionCode: 1
customParameters: "-androidVersionCode 1"
customParameters: -androidVersionCode 1
How to reproduce
Running a job from this repository (or presumably any that uses
windows
) will cause this issue no matter how theandroidVersionCode
is passed to it.Expected behavior
The "dictionary" value for
androidVersionCode
should be passed, as it is in the UNIX-like options (macos
/linux
) listed above:as in this job run.
Additional details
We are running a custom Windows-based Docker image (https://hub.docker.com/layers/noenflux/editor/2022.2.0b8-android-1.0.0/images/sha256-ed170b58a35a1ac1e4a35d2357eb7e230239afa83aef2fd5057492719f4b3b3b?context=repo) to build to "
Android
" targets.The text was updated successfully, but these errors were encountered: