game-ci / game-ci/unity-builder

Install additional Android SDKs on Windows runners

Open
#671 1 comment 1 reaction 0 assignees View on GitHub
enhancement windows
Dominant language
TypeScript
Stars
1.1k
Forks
313
Avg merge
1h 39m
Merged PRs (30d)
1

Description

**Context**

On Windows runners, using a target Android SDK version lower than one shipped with Unity gives an error, e.g. targeting SDK 32 with Unity 2022.3 which is required for Meta Quest:

```
##[error]UnityException: Target Android SDK not installed
Android SDK does not include your Target SDK of 32.
```

This occurs even when specifying `AndroidTargetSdkVersion: AndroidApiLevel32` as a parameter in the workflow.

Linux runners take care of this, due to #582 being implemented in response to #581

Additional context: I prefer to maintain a fleet of WIndows runners to allow Windows IL2CPP builds of a different project.

**Suggested solution**

Invoke the sdkmanager, similarly to #582

**Additional details**

[Discord thread](https://discord.com/channels/710946343828455455/1288459471714259007)

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the Linux SDK-installation change from #582 and the workflow path that handles Android SDK setup on Windows runners. Invoke sdkmanager for the requested target SDK, including AndroidApiLevel32, then verify that a Windows Unity build using a lower target SDK completes without the “Target Android SDK not installed” error.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, github-actions, unity
Domain
build-system, ci-cd, mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
64/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.