Play icon indicating copy to clipboard operation
Play copied to clipboard

Fix CI build on Android

Open achimmihca opened this issue 2 years ago • 6 comments

Actual behaviour

The continuous integration build using GitHub Actions fails for the Android target platform. Error message:

2023-01-09T11:27:13.6923522Z DisplayProgressbar: Detect Java Development Kit (JDK)
2023-01-09T11:27:13.9736423Z UnityException: JDK not found
2023-01-09T11:27:13.9737808Z Java Development Kit (JDK) directory is not set or invalid. Please, fix it in Edit / Unity -> Preferences -> External Tools

However, In Preferences -> External Tools the check box is set for JDK installed with Unity (recommended).

Expected behaviour

The CI build should work.

Sadly, this seems to be a Unity bug in recent version. See also https://github.com/game-ci/unity-builder/issues/489

It might be fixed with the next Unity version.

achimmihca avatar Jan 14 '23 16:01 achimmihca

I am confused. I did not change the GitHub Actions, but PR #367 seems to be working again. Weird

achimmihca avatar Jan 14 '23 17:01 achimmihca

since January 10th there is a new release: https://unity.com/releases/editor/whats-new/2022.2.2

maybe this helps out

supernevi avatar Jan 16 '23 09:01 supernevi

Great! Will upgrade soon

achimmihca avatar Jan 16 '23 09:01 achimmihca

Actually it is not fixed. The Android build still fails because "JDK not found"

achimmihca avatar Jan 17 '23 09:01 achimmihca

I disabled the Android build for now. It can be re-enabled when the "JDK not found" issue has been solved.

achimmihca avatar Feb 02 '23 07:02 achimmihca

Needs re-testing whether the issue still occurs with the new Unity version.

achimmihca avatar Jun 26 '24 16:06 achimmihca