Closed Rycieos closed 11 months ago
Can confirm, I ran into the same issue.
I think the issue is probably from this commit: https://github.com/game-ci/unity-builder/commit/6419c8742b5fa6df0f12a11e1a1554cb34168538
Looks like it was changed for new versions but I guess the old versions don't have the same path
I m also facing the same issue when building on ubuntu but works on windows
I am also facing the same issue on self-hosted ubuntu machine when building using docker image unityci/editor:ubuntu-2020.3.17f1-android-3.0.0
. Any alternate solutionfor this?
My current workaround was to revert to version v3 of this action.
I just pushed a potential fix to game-ci/unity-builder@fix-sdkmgr
. Can someone test this out and let me know if it is fixed?
I tested that branch with Unity version 2020.3.44f1
(same as initially reported), and it works.
At least, it no longer crashes on finding SDK manager. The build still crashed, but I think for an unrelated reason. I will update once I know why.
Confirmed: unrelated issue. Patch looks good.
Should be fixed in the latest v4 release so closing this issue
Bug description Building an Android player crashes when trying to set up the Android SDK. I think this was caused by this commit: https://github.com/game-ci/unity-builder/commit/8ca1282c9eabf4b053576f63611d21ee855b80db This is the line it crashes on: https://github.com/game-ci/unity-builder/blob/bbd713b05afb7069db7168195cb74a904966487f/dist/platforms/ubuntu/entrypoint.sh#L19-L20 I confirmed that the file
/opt/unity/Editor/Data/PlaybackEngines/AndroidPlayer/SDK/cmdline-tools
does not exist in the container.How to reproduce
runAsHostUser
totrue
.Observed behavior
Expected behavior
Build does not crash before even starting.
Additional details
I do not think running on a self-hosted runner is relevant, but in case it is, I can provide any details about the host.